-
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.
Fix transpilation of control flow to no hardware (#11907)
Previously we treated `basis_gates=None` the same as `basis_gates=()` in the hardware check; that is, we treated it as meaning "nothing is allowed", when the intention (and how it's treated elsewhere) is more that "everything is allowed."
- Loading branch information
1 parent
d21127a
commit d47a227
Showing
3 changed files
with
33 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
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/fix-transpile-control-flow-no-hardware-7c00ad733a569bb9.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: | ||
- | | ||
The preset pass managers of :func:`.transpile` will no longer fail on circuits | ||
with control flow, if no hardware target or basis-gate set is specified. They | ||
will now treat such abstract targets as permitting all control-flow operations. | ||
Fixed `#11906 <https://github.com/Qiskit/qiskit/issues/11906>`__. |
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