-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No code in qiskit-experiments depends on `is_simulator` already and `BackendV2` does not provide a standard way to check if a backend uses a simulator. The code currently tries checking if a backend is a subclass of some known fake backend classes from qiskit and qiskit-ibm-runtime, but this code is awkward and seems to be doing something awkward for little benefit.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
releasenotes/notes/deprecate-is-simulator-c101197a126e456f.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
deprecations: | ||
- | | ||
:attr:`.BackendData.is_simulator` has been deprecated. | ||
:class:`~qiskit.providers.BackendV2` does not provide a standard interface | ||
for determining if a backend uses a simulator. Calling code must determine | ||
if a backend uses a simulator through some other means. Qiskit Experiments | ||
does not treat simulator-backed backends differently from hardware backed | ||
ones. |