-
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 PauliEvolutionGate
(using product formulas) for all-identity Pauli terms
#13634
Fix PauliEvolutionGate
(using product formulas) for all-identity Pauli terms
#13634
Conversation
One or more of the following people are relevant to this code:
|
Co-authored-by: Alexander Ivrii <[email protected]>
Pull Request Test Coverage Report for Build 12742676629Details
💛 - 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.
LGTM! There is just a conflict in the test file and a minor docs suggestion.
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.
Is there a point to add another test based on #13644? (calling hamiltonian_variational_ansatz
)?
@ShellyGarion it certainly doesn't hurt -- added in 9254a32 🙂 |
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.
LGTM! thanks
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.
LGTM too :)
…uli terms (#13634) * fix PauliEvo for all identities * fix rustiq Co-authored-by: Alexander Ivrii <[email protected]> * fix docs * regression test 13644 --------- Co-authored-by: Alexander Ivrii <[email protected]> (cherry picked from commit b98e0d0)
…uli terms (#13634) (#13658) * fix PauliEvo for all identities * fix rustiq Co-authored-by: Alexander Ivrii <[email protected]> * fix docs * regression test 13644 --------- Co-authored-by: Alexander Ivrii <[email protected]> (cherry picked from commit b98e0d0) Co-authored-by: Julien Gacon <[email protected]>
Summary
The
PauliEvolutionGate
, if used with a product formula synthesis (this is the default),did not correctly handle all-identity terms in the operator:
Details and comments
Some minor corrections to docs are included.