-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix input normalisation of
transpile(initial_layout=...)
(#11031)
* Fixed issue10554 by modifying _parse_initial_layout in transpile to normalize input of range to a list * Added test and bugfix note * Handle consumable iterables * Fix release-note cross references --------- Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
- Loading branch information
1 parent
9f3a7cf
commit 6148f90
Showing
3 changed files
with
18 additions
and
2 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
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/fix-input-normalization-of-transpile-initial-layout.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,6 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed a regression in :func:`.transpile`, where an ``initial_layout`` given | ||
as a :class:`range` object would no longer be treated as a valid input. | ||
Fixed `#10544 <https://github.com/Qiskit/qiskit/issues/10554>`__. |
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