Craig Gidney

Results 155 issues of Craig Gidney

``` import stim c = stim.Circuit(""" R 1 M 1 CX rec[-1] 0 """) p = stim.PauliString("Z") f = stim.Flow(input=p, output=p) assert c.has_flow(f) c_inv, (f_inv,) = c.time_reversed_for_flows([f]) assert c_inv.has_flow(f_inv) ```...

Currently, because the anticommutation in a detslice diagram is computed when going to the previous tick, anticommutations can appear incorrectly past the end of the diagram and can fail to...

When a line is long enough that it could be crossing a qubit without including it, draw it as a curve instead of as a line.

Free form text bracketed by `[]` accessible from the `stim.CircuitInstruction` class. Ignored by simulators but usable by power users to do the terrible things they want. ``` I[dynamical_decoupling] 0 1...

``` ___________________________ test_worker_finish_work ____________________________ def test_worker_finish_work(): handler = MockWorkHandler() inp = multiprocessing.Queue() out = multiprocessing.Queue() inp.cancel_join_thread() out.cancel_join_thread() worker = CollectionWorkerState( flush_period=-1, worker_id=5, sampler=handler, inp=inp, out=out, custom_error_count_key=None, ) assert worker.process_messages() ==...