Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion test/integration/test_fake_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,21 @@ def setUpClass(cls):
@unpack
def test_circuit_on_fake_backend_v2(self, backend, optimization_level):
if not optionals.HAS_AER and backend.num_qubits > 20:
self.skipTest(f"Unable to run fake_backend {backend.backend_name} without qiskit-aer")
if backend.name in {
"fake_almaden",
"fake_burlington",
"fake_cambridge",
"fake_essex",
"fake_johannesburg",
"fake_london",
"fake_poughkeepsie",
"fake_rochester",
"fake_singapore",
}:
self.skipTest(
"Unable to run fake_backend {} without qiskit-aer".format(backend.backend_name)
f"Unable to run fake_backend {backend.backend_name} since its configuration does "
"not have a 'supported_instructions' attribute."
)
backend.set_options(seed_simulator=42)
pm = generate_preset_pass_manager(backend=backend, optimization_level=optimization_level)
Expand Down