Fix `with_inlined_feedback` giving bad results when interleaving feedback and measurements
Closed this issue · 0 comments
Strilanc commented
c = stim.Circuit('''
M 0
CX
M 1
DETECTOR rec[-1]
''')
c.with_inlined_feedback()
prints
stim.Circuit('''
M 1 0
DETECTOR rec[-1]
''')
which is obviously wrong because it reversed the order of the measurements.