diff --git a/test/integration/test_options.py b/test/integration/test_options.py index 7e7f19103..21ab865c3 100644 --- a/test/integration/test_options.py +++ b/test/integration/test_options.py @@ -109,7 +109,7 @@ def test_unsupported_input_combinations(self, service): obs = SparsePauliOp.from_list([("I", 1)]) options = Options() options.resilience_level = 3 - backend = service.backends(simulator=True)[0] + backend = service.backend("ibmq_qasm_simulator") with Session(service=service, backend=backend) as session: with self.assertRaises(ValueError) as exc: inst = Estimator(session=session, options=options) @@ -122,7 +122,7 @@ def test_default_resilience_settings(self, service): circ = QuantumCircuit(1) obs = SparsePauliOp.from_list([("I", 1)]) options = Options(resilience_level=2) - backend = service.backends(simulator=True)[0] + backend = service.backend("ibmq_qasm_simulator") with Session(service=service, backend=backend) as session: inst = Estimator(session=session, options=options) job = inst.run(circ, observables=obs) @@ -152,7 +152,7 @@ def test_all_resilience_levels(self, service): psi1 = RealAmplitudes(num_qubits=2, reps=2) h_1 = SparsePauliOp.from_list([("II", 1), ("IZ", 2), ("XI", 3)]) - backend = service.backends(simulator=True)[0] + backend = service.backend("ibmq_qasm_simulator") options = Options() options.simulator.coupling_map = [[0, 1], [1, 0]]