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 bugs with VF2Layout pass and Qiskit Aer 0.13 (backport #11585) #12536

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 10, 2024

Summary

Qiskit Aer 0.13 is incompatible with the pass manager generated by generate_preset_pass_manager due to bugs with how VF2Layout pass handles its Target, which does not contain a coupling map or qargs.

Details and comments

This fixes these so that VF2 will only use the target generated coupling map if it is not None, and doesn't error from trying to iterate over target.qargs that are also None in these cases.


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

* Fix bugs with V2FLayout pass and Qiskit Aer 0.13

* Update qiskit/transpiler/passes/layout/vf2_layout.py

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* test

* Update releasenotes/notes/fix-vf2-aer-a7306ce07ea81700.yaml

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>

* long lines

---------

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
(cherry picked from commit 2b847b8)
@mergify mergify bot requested a review from a team as a code owner June 10, 2024 09:19
@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 following people are relevant to this code:

  • @Qiskit/terra-core

@github-actions github-actions bot added Changelog: Bugfix Include in the "Fixed" section of the changelog affects extended support This issue (also) affects extended support labels Jun 10, 2024
@1ucian0 1ucian0 added this to the 0.46.2 milestone Jun 10, 2024
@coveralls
Copy link

coveralls commented Jun 10, 2024

Pull Request Test Coverage Report for Build 9445779042

Details

  • 5 of 5 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 86.923%

Totals Coverage Status
Change from base Build 9426882578: 0.02%
Covered Lines: 74994
Relevant Lines: 86276

💛 - Coveralls

@ElePT ElePT added this pull request to the merge queue Jun 10, 2024
Merged via the queue into stable/0.46 with commit 3de767d Jun 10, 2024
12 checks passed
@mergify mergify bot deleted the mergify/bp/stable/0.46/pr-11585 branch June 10, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects extended support This issue (also) affects extended support Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants