-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix bug in qs_decomposition #10850
Conversation
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 6205919056
💛 - Coveralls |
There was a problem hiding this 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.
There was a problem hiding this 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
* fix bug in qs_decomposition * reno --------- Co-authored-by: Luciano Bello <[email protected]> (cherry picked from commit dda063e)
* fix bug in qs_decomposition * reno --------- Co-authored-by: Luciano Bello <[email protected]> (cherry picked from commit dda063e) Co-authored-by: ewinston <[email protected]>
* fix bug in qs_decomposition * reno --------- Co-authored-by: Luciano Bello <[email protected]>
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.