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 fbf3826 commit 03cd75aCopy full SHA for 03cd75a
test/cirq_utils/test_parallelize.py
@@ -55,7 +55,10 @@ def test_measurement_and_reset():
55
56
print(parallelized_circuit)
57
58
- assert len(parallelized_circuit.moments) == 11
+ # NOTE: depending on hardware, cirq produces differing, but unitary equivalent
59
+ # native circuits; in some cases, there is a PhZX gate with a negative phase
60
+ # which cannot be combined with others in the parallelization leading to a longer circuit
61
+ assert len(parallelized_circuit.moments) in (11, 13)
62
63
# this circuit should deterministically return all qubits to |0>
64
# let's check:
0 commit comments