From 8208831359b2b21b8827f4d58c4cb6343a5b45b2 Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Thu, 14 Mar 2024 18:11:30 +0400 Subject: [PATCH] fix test --- tests/test_transpiler_router.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_transpiler_router.py b/tests/test_transpiler_router.py index b8f16431d3..6943190399 100644 --- a/tests/test_transpiler_router.py +++ b/tests/test_transpiler_router.py @@ -297,7 +297,7 @@ def test_sabre_random_circuits(n_gates, look, decay, placer, connectivity): final_map=final_qubit_map, initial_map=initial_layout, ) - assert transpiled_circuit.queue[-1].result is measurement.result + assert transpiled_circuit.queue[-1].register_name == measurement.register_name def test_sabre_memory_map(): @@ -322,9 +322,8 @@ def test_sabre_intermediate_measurements(): connectivity.add_edges_from([(0, 1), (1, 2)]) router = Sabre(connectivity=connectivity) initial_layout = {"q0": 0, "q1": 1, "q2": 2} - routed_circ, final_layout = router(circuit=circ, initial_layout=initial_layout) - circuit_result = routed_circ.execute(nshots=100) - assert routed_circ.queue[3].result is measurement.result + routed_circ, _ = router(circuit=circ, initial_layout=initial_layout) + assert routed_circ.queue[3].register_name == measurement.register_name @pytest.mark.parametrize("router_algorithm", [Sabre, ShortestPaths])