Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 29, 2024
1 parent be4060f commit 6eaf3cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_transpiler_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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


Expand Down

0 comments on commit 6eaf3cc

Please sign in to comment.