Skip to content
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 missing layout in Commuting2qGateRouter (backport #12137) #12383

Merged
merged 1 commit into from
May 9, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 9, 2024

Summary

This PR fixes an oversight in the Commuting2qGateRouter pass where the qreg permutations weren't tracked in the property set, the output circuit layout would be missing, and uses would have to keep track of the mapping from cregs to qregs manually.

Details and comments

Found while working on a PR that used this pass in an independent repository: qiskit-community/qopt-best-practices#30.


This is an automatic backport of pull request #12137 done by [Mergify](https://mergify.com).

* Add layout to property set, add test

* Apply comments from code review

* Add virtual permutation instead of final layout. Test

(cherry picked from commit b80885d)
@mergify mergify bot requested a review from a team as a code owner May 9, 2024 21:41
@qiskit-bot
Copy link
Collaborator

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:

  • @Qiskit/terra-core

@github-actions github-actions bot added the Changelog: Bugfix Include in the "Fixed" section of the changelog label May 9, 2024
@github-actions github-actions bot added this to the 1.1.0 milestone May 9, 2024
@jakelishman jakelishman enabled auto-merge May 9, 2024 21:55
@coveralls
Copy link

Pull Request Test Coverage Report for Build 9023915733

Details

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • 11 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.004%) to 89.629%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 5 92.37%
crates/qasm2/src/parse.rs 6 96.69%
Totals Coverage Status
Change from base Build 9022399991: 0.004%
Covered Lines: 62251
Relevant Lines: 69454

💛 - Coveralls

@jakelishman jakelishman added this pull request to the merge queue May 9, 2024
Merged via the queue into stable/1.1 with commit 2c44a06 May 9, 2024
18 checks passed
@mergify mergify bot deleted the mergify/bp/stable/1.1/pr-12137 branch May 9, 2024 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants