Skip to content

Commit

Permalink
router mishandling mid-circuit measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
shef4 committed Oct 2, 2023
1 parent f9141ae commit df79ec8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cirq-core/cirq/transformers/routing/route_circuit_cqc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,6 @@ def test_circuit_with_measurement_gates():
cirq.testing.assert_same_circuits(routed_circuit, circuit)


def test_circuit_with_mid_circuit_measurement_gates_sample_issue6293():
device = cirq.testing.construct_ring_device(3)
device_graph = device.metadata.nx_graph
q = cirq.LineQubit.range(3)
circuit = cirq.Circuit(cirq.CZ(q[0], q[1]), cirq.CZ(q[1], q[2]), cirq.CZ(q[0], q[2]),cirq.MeasurementGate(3).on(*q),cirq.H.on_each(*q), cirq.measure_each(*q))
hard_coded_mapper = cirq.HardCodedInitialMapper({q[i]: q[i] for i in range(3)})
router = cirq.RouteCQC(device_graph)
routed_circuit = router(circuit, initial_mapper=hard_coded_mapper)
print(circuit)
print(routed_circuit)


def test_circuit_with_non_unitary_and_global_phase():
device = cirq.testing.construct_ring_device(4)
device_graph = device.metadata.nx_graph
Expand Down

0 comments on commit df79ec8

Please sign in to comment.