Skip to content

Commit

Permalink
use ibmq_qasm_simulator (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 authored Sep 13, 2023
1 parent 70c9d56 commit 3cccebd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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]]

Expand Down

0 comments on commit 3cccebd

Please sign in to comment.