-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Pauli.evolve()
should recognize ECR gates as Clifford gates
#12086
Comments
Pauli.evolve()
should recognize ECR gates as Clifford gates
Currently, the
but since the |
I went ahead and made a draft PR here: #12095 . The call to the new The |
I think that this would be the best approach. This is similar to the way that I added the |
Thanks for the feedback!
I think supporting ECRGate is important since it seems to be a standard basis-gate for real backends nowadays (at least for IBM backends), and given that The single-qubit rotations by pi/2 angles as in the other issue would also be good I think, but would need to be handled a little differently so maybe it's better not to further complicate this PR... And maybe it's a little less surprising from a user perspective that Rz might not be detected as a Clifford gate since it depends on the parameter, whereas ECR is always Clifford. |
I marked the PR as "ready for review," but if I should change it back for some reason (like if you were planning to make changes first or anything) just let me know. |
Environment
What is happening?
The above call to evolve() raises an error even though qc contains only Clifford gates:
How can we reproduce the issue?
What should happen?
ECR gates should be recognized as Clifford gates, and the Pauli should evolve successfully.
Related: #12085
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: