Can't simulate a repeated CircuitOperation
that contains a repeat_until
CircuitOperation
#6446
Labels
area/classical/control
area/classical/measurements
area/simulation
good first issue
This issue can be resolved by someone who is not familiar with the codebase. A good starting issue.
kind/bug-report
Something doesn't seem to work.
triage/accepted
A consensus emerged that this bug report, feature request, or other action should be worked on
Description of the issue
Repetitively checking the syndromes of a prepared state before using it to measure stabilizers is an important primitive for fault tolerance. True fault tolerance requires that this procedure happen multiple times.
For a minimum reproducible example, measuring a qubit until it's
|0>
and then applying anX
gate to it multiple times will throw araise ValueError('Infinite loop: condition is not modified in subcircuit.')
How to reproduce the issue
Will print
ValueError: Infinite loop: condition is not modified in subcircuit.
The alternative is to run the
CircuitOperation
twice, but this breaks the printing of the result but this will throwValueError: Cannot extract 2D measurements for repeated keys
Cirq version
1.4.0.dev20240126200039
The text was updated successfully, but these errors were encountered: