Closed AlexBourassa closed 4 months ago
Can you give an example of a current bad output in the description of the PR?
Can you give an example of a current bad output in the description of the PR?
On main
, the stim circuit from the unit test would be:
H 0 0 0 0
TICK
Whereas after this PR the output circuit is
H 0
TICK
H 0
TICK
H 0
TICK
H 0
TICK
@Strilanc I think this should be ready to go! (although some of the CI are failing, but I don't think this is related to my change?). Please take another look when you get a chance!
It was failing because you were using cirq.q
which doesn't exist in the cirq version the tests install, to ensure backwards compatibility.
Currently in
main
when we convert a cirq circuit to stim with aCircuitOperation
with a single repetition (or withflatten=True
) no TICK instructions are inserted since the moments are removed in thecirq.decompose_once(op)
command.