diff --git a/test/python/compiler/test_transpiler.py b/test/python/compiler/test_transpiler.py index b5a411ba2775..65f6d1fd4f49 100644 --- a/test/python/compiler/test_transpiler.py +++ b/test/python/compiler/test_transpiler.py @@ -72,7 +72,7 @@ from qiskit.exceptions import QiskitError from qiskit.providers.backend import BackendV2 from qiskit.providers.fake_provider import FakeGeneric -from qiskit.providers.fake_provider import Fake5QV1, Fake20QV1 +from qiskit.providers.fake_provider import Fake20QV1 from qiskit.providers.options import Options from qiskit.pulse import InstructionScheduleMap from qiskit.quantum_info import Operator, random_unitary @@ -298,7 +298,7 @@ def test_transpile_qft_grid(self): for instruction in new_circuit.data: if isinstance(instruction.operation, CXGate): - self.assertIn([qubit_indices[x] for x in instruction.qubits], coupling_map) + self.assertIn([qubit_indices[x] for x in instruction.qubits], RUESCHLIKON_CMAP) def test_already_mapped_1(self): """Circuit not remapped if matches topology.