From aae31dd20e7f82883754e8277d241386091eff46 Mon Sep 17 00:00:00 2001 From: changsookim <> Date: Mon, 29 Jul 2024 12:49:24 +0800 Subject: [PATCH] update test_sabre_shortest_path_routing() --- tests/test_transpiler_router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_transpiler_router.py b/tests/test_transpiler_router.py index aeda0f0979..66e3a9bfdf 100644 --- a/tests/test_transpiler_router.py +++ b/tests/test_transpiler_router.py @@ -229,7 +229,7 @@ def test_sabre_shortest_path_routing(): # line connectivity chip = nx.Graph() - chip.add_nodes_from([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) + chip.add_nodes_from(range(10)) chip.add_edges_from( [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 6), (6, 7), (7, 8), (8, 9)] )