Skip to content

Commit

Permalink
Fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ElePT committed Dec 4, 2023
2 parents a929011 + 6137248 commit c3c77e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/python/transpiler/test_sabre_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,15 @@ def test_integration_with_pass_manager(self):
backend = FakeGeneric(
num_qubits=20, basis_gates=["cx", "id", "rz", "sx", "x"], coupling_map=cmap20, seed=42
)
pm = generate_preset_pass_manager(1, backend, seed_transpiler=0)
pm = generate_preset_pass_manager(
0, backend, layout_method="sabre", routing_method="sabre", seed_transpiler=0
)
pm.pre_layout = PassManager([SabrePreLayout(backend.target)])
qct = pm.run(self.circuit)
qct_initial_layout = qct.layout.initial_layout
self.assertEqual(
[qct_initial_layout[q] for q in self.circuit.qubits],
[8, 9, 14, 13, 18, 19, 17, 16, 11, 10, 5, 6, 1, 2, 3, 7],
[3, 8, 7, 12, 13, 14, 18, 17, 16, 11, 10, 5, 6, 1, 2, 4]
)


Expand Down

0 comments on commit c3c77e8

Please sign in to comment.