-
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.
Browse files
Browse the repository at this point in the history
…#10397) The recursion inside the `CheckMap` pass was based on a custom `DAGCircuit.compose` solution, rather than the more standard qubit-argument-binding setup we normally use. This did not pass in the clbit ordering to the composition, which could cause it to fail to map nested conditional statements. Instead, we can just enter each DAG naturally, and use the regular wire map to access the physical indices being referred to. (cherry picked from commit 163875e) Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
- Loading branch information
1 parent
3997f02
commit c0f02c6
Showing
3 changed files
with
51 additions
and
27 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-checkmap-nested-condition-1776f952f6c6722a.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: | ||
- | | ||
The :class:`.CheckMap` transpiler pass will no longer spuriously error when dealing with nested | ||
conditional structures created by the control-flow builder interface. See `#10394 | ||
<https://github.com/Qiskit/qiskit-terra/issues/10394>`__. |
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