forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BackendV2 support for PassManagerConfig.from_backend() (Qiskit#8109)
This commit fixes the PassManagerConfig.from_backend() constructor method when running with a BackendV2 object. Previously this was not correctly handled and it always assumed the input backend was a BackendV1 object. This would cause an error if you ran the constructor with a BackendV2. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
992c261
commit 42c72be
Showing
3 changed files
with
40 additions
and
12 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
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/fix-pm-config-backend_v2-ac8b83267105a47d.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,7 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed support in the :meth:`.PassManagerConfig.from_backend` constructor | ||
method for building a :class:`~.PassManagerConfig` object from a | ||
:class:`~.BackendV2` instance. Previously this wasn't handled correctly | ||
and would fail when running with a :class:`~.BackendV2` object. |
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