From 6eaf3cc6ccec13f80a637ff947186ff2fbc1a616 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 04:44:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_transpiler_router.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_transpiler_router.py b/tests/test_transpiler_router.py index b1ee1f8852..aeda0f0979 100644 --- a/tests/test_transpiler_router.py +++ b/tests/test_transpiler_router.py @@ -202,8 +202,8 @@ def test_sabre_looping(): placer = Trivial(connectivity=chip) initial_layout = placer(loop_circ) - router_old = Sabre(connectivity=chip, swap_threshold=np.inf) # Old - router_new = Sabre(connectivity=chip) # New + router_old = Sabre(connectivity=chip, swap_threshold=np.inf) # Old + router_new = Sabre(connectivity=chip) # New routed_circuit_old, _ = router_old(loop_circ, initial_layout=initial_layout) routed_circuit_new, _ = router_new(loop_circ, initial_layout=initial_layout) @@ -216,7 +216,7 @@ def count_swaps(circuit): count_old = count_swaps(routed_circuit_old) count_new = count_swaps(routed_circuit_new) - + assert count_new < count_old