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 bug in qs_decomposition #10850

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Fix bug in qs_decomposition #10850

merged 2 commits into from
Oct 3, 2023

Conversation

ewinston
Copy link
Contributor

Summary

fixes #10787

Details and comments

The unitary described in this issue was causing a single 2q unitary to be generated in the quantum shannon decomposition, when opt_a2==True, which couldn't take advantage of this diagonal commutation optimization and would error. The fix instead leaves this as an undecomposed 2-qubit unitary gate.

@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core
  • @ikkoham

@coveralls
Copy link

Pull Request Test Coverage Report for Build 6205919056

  • 3 of 4 (75.0%) changed or added relevant lines in 1 file are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.001%) to 87.27%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/quantum_info/synthesis/qsd.py 3 4 75.0%
Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 5 90.91%
Totals Coverage Status
Change from base Build 6204306855: -0.001%
Covered Lines: 74196
Relevant Lines: 85019

💛 - Coveralls

@1ucian0 1ucian0 added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Sep 22, 2023
Copy link
Member

@1ucian0 1ucian0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me. Thanks Eric! I would also add a fixes reno.

@1ucian0 1ucian0 self-assigned this Sep 22, 2023
@1ucian0 1ucian0 changed the title fix bug in qs_decomposition Fix bug in qs_decomposition Oct 3, 2023
@1ucian0 1ucian0 added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Oct 3, 2023
@1ucian0 1ucian0 added this to the 0.25.3 milestone Oct 3, 2023
Copy link
Member

@1ucian0 1ucian0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reno added in 3e02f81

@1ucian0 1ucian0 enabled auto-merge October 3, 2023 12:07
@1ucian0 1ucian0 added this pull request to the merge queue Oct 3, 2023
Merged via the queue into Qiskit:main with commit dda063e Oct 3, 2023
mergify bot pushed a commit that referenced this pull request Oct 3, 2023
* fix bug in qs_decomposition

* reno

---------

Co-authored-by: Luciano Bello <[email protected]>
(cherry picked from commit dda063e)
github-merge-queue bot pushed a commit that referenced this pull request Oct 4, 2023
* fix bug in qs_decomposition

* reno

---------

Co-authored-by: Luciano Bello <[email protected]>
(cherry picked from commit dda063e)

Co-authored-by: ewinston <[email protected]>
rupeshknn pushed a commit to rupeshknn/qiskit that referenced this pull request Oct 9, 2023
* fix bug in qs_decomposition

* reno

---------

Co-authored-by: Luciano Bello <[email protected]>
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 stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gate.control method throwing error
4 participants