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 Rust-space TwoQubitBasisDecomposer for non-standard KAK gate (backport #13014) #13026

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 23, 2024

Summary

Proposal to fix #12998. I can probably extend the unit tests further.

Details and comments


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

…13014)

* Get rid of encoded assumption in TwoQubitBasisDecomposer that the given KAK gate is a Rust-space StandardGate

* Improve unit test

* Update test/python/synthesis/test_synthesis.py

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

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
(cherry picked from commit a4bf87b)
@mergify mergify bot requested review from alexanderivrii, ShellyGarion and a team as code owners August 23, 2024 17: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
  • @kevinhartman
  • @levbishop
  • @mtreinish

@github-actions github-actions bot added Changelog: Bugfix Include in the "Fixed" section of the changelog Rust This PR or issue is related to Rust code in the repository labels Aug 23, 2024
@github-actions github-actions bot added this to the 1.2.1 milestone Aug 23, 2024
@ElePT
Copy link
Contributor

ElePT commented Aug 26, 2024

It looks like the fix cannot be backported unless we also backport CircuitData.from_packed_operation (#12943).

@ElePT
Copy link
Contributor

ElePT commented Aug 26, 2024

The PR will be mergeable after #13038 :)

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10573179702

Details

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

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/expr.rs 1 94.02%
crates/qasm2/src/lex.rs 5 92.48%
Totals Coverage Status
Change from base Build 10564937123: 0.09%
Covered Lines: 66905
Relevant Lines: 74482

💛 - Coveralls

@ElePT ElePT enabled auto-merge August 27, 2024 08:41
@ElePT ElePT added this pull request to the merge queue Aug 27, 2024
Merged via the queue into stable/1.2 with commit c59a430 Aug 27, 2024
17 checks passed
@mergify mergify bot deleted the mergify/bp/stable/1.2/pr-13014 branch August 27, 2024 11:26
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 Rust This PR or issue is related to Rust code in the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants