-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove use of deprecated objects in
BasicSimulator
(#13743)
* Refactor BasicSimulator not to rely on assemble or qobj. Drop support for c_if (deprecated) and providing parameter bounds to the "run" method. * Code cleanup and style fixing * Add reno * Address small oversights * Apply suggestions from Eli's code review Co-authored-by: Eli Arbel <[email protected]> * Fix handling of backend options in both BasicSimulator and BackendV2. Add unit tests. Rename kwargs to unify use of options with aer simulator and update documentation to reflect actual usage. * Document header in docstring * Fix lint * Apply suggestions from Eli's code review Co-authored-by: Eli Arbel <[email protected]> --------- Co-authored-by: Eli Arbel <[email protected]>
- Loading branch information
Showing
7 changed files
with
242 additions
and
519 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
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
releasenotes/notes/remove-backend-configuration-basic-simulator-cac1c2783a5a4e25.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,11 @@ | ||
--- | ||
upgrade_providers: | ||
- | | ||
The ``configuration`` method of :class:`.BasicSimulator` has been removed following its deprecation | ||
in Qiskit 1.3. This method returned a ``BackendConfiguration`` instance, and this class was | ||
part of the deprecated :class:`.BackendV1` workflow. The individual configuration elements | ||
can be retrieved directly from the backend or from the contained :class:`.Target` instance ``(backend.target)``. | ||
- | | ||
The ``run_experiment`` method of :class:`.BasicSimulator` has also been removed. This method took an instance | ||
of the ``QasmQobjExperiment`` class as an input argument, and the class has been deprecated since Qiskit 1.2. |
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
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
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
Oops, something went wrong.