-
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
The mcrx
gate introduces unwanted phases
#3536
Comments
Hence |
Hi @quantumjim Is #3536 (comment) solving this issue? |
I suppose this comes down to a conflict of convention. Both for The current convention seems to be that that I suppose the current convention is consistent with that for |
@quantumjim I disagree strongly. Rx gate is well defined as This will be better documented in PR #3472 which actually adds the matrix definition for every standard gate to the API documentation. After that PR is finished you can set the phases on gates so you could always make your own controlled gate of |
That looks great, and will serve the purposes of difficult people like me ;) |
Information
What is the current behavior?
The
mcrx
gate for anglepi
should (if I'm not mistaken, be equivalent tocx
. This means it should be described by the matrixHowever, the gate seems to introduce unwanted phases, making the effect seem to be better described by
So it is perhaps more of a controlled-Y than controlled-X.
Steps to reproduce the problem
See this notebook.
For example, the following should rotate |01> to |11>,
Instead it rotates it to -i |11>
What is the expected behavior?
Suggested solutions
The text was updated successfully, but these errors were encountered: