Skip to content

Commit

Permalink
modify the unit test to assert the full circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBourassa committed Mar 23, 2024
1 parent 955b79e commit db4a085
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion glue/cirq/stimcirq/_cirq_to_stim_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,14 @@ def test_loop_with_one_rep():
)
)
sc = stimcirq.cirq_circuit_to_stim_circuit(cc)
assert str(sc).splitlines().count('TICK') > 1
assert str(sc) == """H 0
TICK
H 0
TICK
H 0
TICK
H 0
TICK"""

def test_on_tagged_loop():
a, b = cirq.LineQubit.range(2)
Expand Down

0 comments on commit db4a085

Please sign in to comment.