Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct simulator in integration tests #1078

Merged
merged 1 commit into from
Sep 13, 2023
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
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