-
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
Improved Documentation and Error-Signaling of VF2PostLayout #11090
Conversation
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the the following people are requested to review this:
|
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.
Thanks for looking at this! Please could you also add a release note with an "upgrade" note that explains that VF2PostLayout
now distinguishes the cases of "nothing better" and "no solution"?
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.
Sorry for the really long delay in coming back to this (and my misreading of what you'd done in the prior review!). The code looks good to merge to me, I just had a minor comment about the release note.
VF2PostLayout no distinguishes between 'no solution' and 'no better solution' when determining a | ||
Layout for a given quantum circuit. 'no better solution' is set when the initial layout of a quantum | ||
circuit is also the optimal one, i.e. incurs the least cost in terms of error rates. |
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.
Minor: VF2PostLayout
and Layout
would best as Sphinx cross-references, so users can click them and jump to the full documentation on them. The syntax looks like this:
VF2PostLayout no distinguishes between 'no solution' and 'no better solution' when determining a | |
Layout for a given quantum circuit. 'no better solution' is set when the initial layout of a quantum | |
circuit is also the optimal one, i.e. incurs the least cost in terms of error rates. | |
:class:`.VF2PostLayout` no distinguishes between 'no solution' and 'no better solution' when determining a | |
:class:`.Layout` for a given quantum circuit. 'no better solution' is set when the initial layout of a quantum | |
circuit is also the optimal one, i.e. incurs the least cost in terms of error rates. |
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.
Sure, I changed it, thanks for the feedback on the release note! :)
No worries! Thanks for your input, I changed the release notes! |
Pull Request Test Coverage Report for Build 6743723348Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
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.
Thanks for the changes!
Summary
Fixes #11089 as discussed with @mtreinish
Details and comments
VF2PostLayout does not return a solution when presented with an already ideal initial layout for a quantum circuit. This PR extends the VF2PostLayout pass by a 'no better solution found' error code for these situations and changes the documentation accordingly.