Stim
Stim copied to clipboard
A fast stabilizer circuit library.
Mitigates https://github.com/quantumlib/Stim/issues/764
``` 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) ```...
Different orders of instructions in the same tick will result in different `timeslice-svg` plots. For example, the following code produces the correct time slice plot as expected: ```python import stim...
@lucasberent and I are trying to benchmark a decoder using the circuit "color_code:memory_xyz" If I run ``` d = 3 p = 0.01 circuit = stim.Circuit.generated( rounds=10*d, distance=d, after_clifford_depolarization=p, after_reset_flip_probability=p,...
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.
Currently PauliString.before and PauliString.after are only implemented for measurement-less circuits It would be nice to add another overload letting us provide it with appropriate measurement indices, so we can project...