-
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
BarrierBeforeFinalMeasurements
with loose bits (#8924)
We simply need to consider loose bits as well when constructing the new DAG layer. This isn't `DAGCircuit.copy_empty_like` because we don't want things like metadata and global phase. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 64c5eb6)
- Loading branch information
1 parent
e0befd7
commit 2fa35a9
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-barrier-before-final-measurements-loose-1849282c11fc5eb0.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 the :class:`.BarrierBeforeFinalMeasurements` transpiler pass when there | ||
are conditions on loose :class:`.Clbit`\ s immediately before the final measurement | ||
layer. Previously, this would fail claiming that the bit was not present | ||
in an internal temporary circuit. |
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