-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix final_layout when VF2PostLayout finds a better layout #10466
Merged
jakelishman
merged 7 commits into
Qiskit:main
from
mtreinish:fix-final-layout-with-vf2-post
Jul 24, 2023
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7b8039f
Fix final_layout when VF2PostLayout finds a better layout
mtreinish 8b532c8
Remove stray debug print
mtreinish 9b4d39e
Merge branch 'main' into fix-final-layout-with-vf2-post
mtreinish a26fa48
Use a list instead of a dict
mtreinish 58c38a5
Add assertion on vf2postlayout being used in compiler.transpile tests
mtreinish e112b59
Merge remote-tracking branch 'origin/main' into fix-final-layout-with…
mtreinish df887ea
Actually assert a post layout is set
mtreinish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
15 changes: 15 additions & 0 deletions
15
releasenotes/notes/fix-final-layout-in-apply-layout-dfbdbde593cf7929.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,15 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed an issue with the :func:`~.transpile` function and all the preset | ||
pass managers generated via :func:`~.generate_preset_pass_manager` where | ||
the output :class:`~.QuantumCircuit` object's :attr:`~.QuantumCircuit.layout` | ||
attribute would have an invalid :attr:`.TranspileLayout.final_layout` | ||
attribute. This would occur in scenarios when the :class:`~.VF2PostLayout` | ||
pass would run and find an alternative initial layout that has lower | ||
reported error rates. When altering the initial layout the | ||
:attr:`~.TranspileLayout.final_layout` attribute was never updated to | ||
reflect this change. This has been corrected so that the ``final_layout`` | ||
is always correctly reflecting the output permutation caused by the routing | ||
stage. | ||
Fixed `#10457 <https://github.com/Qiskit/qiskit-terra/issues/10457>`__ |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
et tu?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh, I was wondering if you'd notice, figured I'd give it a try :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I apparently didn't notice it the first time I read it, but saw it when I was checking the changes haha.