Skip to content

Commit

Permalink
Remove get_backend() (#1451)
Browse files Browse the repository at this point in the history
`Aer.get_backend()` was deprecated as part of the `Provider` abstract
class deprecation in Qiskit/qiskit#12145. This
PR replaces it with instantiating `AerSimulator()` directly so the cron
CI tests can pass again.

---------

Co-authored-by: Will Shanks <[email protected]>
  • Loading branch information
coruscating and wshanks authored Apr 26, 2024
1 parent d2449a4 commit 19dd706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit_experiments/library/quantum_volume/qv_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ def __init__(
self.set_experiment_options(trials=trials, seed=seed)

if not simulation_backend and HAS_AER:
from qiskit_aer import Aer
from qiskit_aer import AerSimulator

self._simulation_backend = Aer.get_backend("aer_simulator")
self._simulation_backend = AerSimulator()
else:
self._simulation_backend = simulation_backend

Expand Down

0 comments on commit 19dd706

Please sign in to comment.