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 .decompose on control flow (backport #13545) #13549

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Dec 10, 2024

Summary

This PR fixes two behaviors when decomposing control flow:

Details and comments

Even though c_if is deprecated we should still handle this case, but the logic for this can be removed once c_if is gone. There's a comment specifying which part is c_if-specific.


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

* decompose control flow ops

* add reno and test

* trailing print

* thou shall support Python 3.9

* Fix comments & reno

Co-authored-by: Elena Peña Tapia <[email protected]>

---------

Co-authored-by: Elena Peña Tapia <[email protected]>
(cherry picked from commit 4495c67)
@mergify mergify bot requested a review from a team as a code owner December 10, 2024 15:56
@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 the Changelog: Bugfix Include in the "Fixed" section of the changelog label Dec 10, 2024
@github-actions github-actions bot added this to the 1.3.1 milestone Dec 10, 2024
@Cryoris Cryoris enabled auto-merge December 10, 2024 16:03
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12259875909

Details

  • 14 of 14 (100.0%) changed or added relevant lines in 1 file are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.02%) to 88.929%

Files with Coverage Reduction New Missed Lines %
crates/accelerate/src/two_qubit_decompose.rs 1 91.96%
crates/qasm2/src/lex.rs 3 92.73%
Totals Coverage Status
Change from base Build 12239168078: 0.02%
Covered Lines: 79097
Relevant Lines: 88944

💛 - Coveralls

@Cryoris Cryoris added this pull request to the merge queue Dec 10, 2024
Merged via the queue into stable/1.3 with commit 51be8c5 Dec 10, 2024
20 checks passed
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.

3 participants