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:
|
jakelishman
left a comment
There was a problem hiding this comment.
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"?
jakelishman
left a comment
There was a problem hiding this comment.
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.
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.
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 |
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.