We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 529f2c9 commit 8f6fedfCopy full SHA for 8f6fedf
glue/cirq/stimcirq/_stim_to_cirq_test.py
@@ -763,3 +763,19 @@ def test_id_error_round_trip():
763
cirq_circuit = stimcirq.stim_circuit_to_cirq_circuit(stim_circuit)
764
restored_circuit = stimcirq.cirq_circuit_to_stim_circuit(cirq_circuit)
765
assert restored_circuit == stim_circuit
766
+
767
+def test_round_trip_with_pauli_obs():
768
+ stim_circuit = stim.Circuit("""
769
+ QUBIT_COORDS(5, 5) 0
770
+ R 0
771
+ OBSERVABLE_INCLUDE(0) X0
772
+ TICK
773
+ H 0
774
775
+ M 0
776
+ OBSERVABLE_INCLUDE(0) rec[-1]
777
778
+ """)
779
+ cirq_circuit = stimcirq.stim_circuit_to_cirq_circuit(stim_circuit)
780
+ restored_circuit = stimcirq.cirq_circuit_to_stim_circuit(cirq_circuit)
781
+ assert restored_circuit == stim_circuit
0 commit comments