Skip to content

Commit

Permalink
Deprecate running pulse jobs on fake backends
Browse files Browse the repository at this point in the history
With Aer 0.13 removing the capability, this is not something we will be
able to support moving forwards.  This deprecates the functionality, in
preparation for its full removal in Qiskit 1.0.
  • Loading branch information
jakelishman committed Dec 21, 2023
1 parent ec1e4dd commit b299aae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qiskit/providers/fake_provider/fake_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,14 @@ def run(self, run_input, **kwargs):
"QuantumCircuit, Schedule, or a list of either" % circuits
)
if pulse_job:
warnings.warn(
"Simulating pulse jobs on fake backends is deprecated as of Qiskit 0.46,"
" and the functionality will be removed in Qiskit 1.0, due to Qiskit Aer removing"
" its pulse-simulation capabilities in its most recent versions."
" You can try using Qiskit Dynamics instead.",
DeprecationWarning,
stacklevel=2,
)
if _optionals.HAS_AER:
import qiskit_aer
from qiskit_aer.pulse import PulseSystemModel
Expand Down
5 changes: 5 additions & 0 deletions releasenotes/notes/deprecate-aer-hooks-1bc00a96ebb269f6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ deprecations:
- |
Importing from ``qiskit.providers.aer`` is deprecated and will stop working in Qiskit 1.0. You
should instead import from ``qiskit_aer``, which is a drop-in replacement.
- |
Running pulse jobs on backends from :mod:`qiskit.providers.fake_provider` is deprecated, and
all support will be removed in Qiskit 1.0. This is due to Qiskit Aer removing its simulation
functionality for such jobs. For low-level Hamiltonain-simulation workloads, consider using
a specialised library such as `Qiskit Dynamics <https://qiskit.org/ecosystem/dynamics>`__.

0 comments on commit b299aae

Please sign in to comment.