Skip to content

Commit

Permalink
Fix double TICK
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBourassa committed Mar 21, 2024
1 parent 952a867 commit 955b79e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions glue/cirq/stimcirq/_cirq_to_stim.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ def process_circuit_operation_into_repeat_block(self, op: cirq.CircuitOperation)
if self.flatten or op.repetitions == 1:
moments = cirq.unroll_circuit_op(cirq.Circuit(op), deep=False, tags_to_check=None).moments
self.process_moments(moments)
self.out = self.out[:-1] # Remove a trailing TICK (to avoid double TICK)
return

child = CirqToStimHelper()
Expand Down

0 comments on commit 955b79e

Please sign in to comment.