-
Notifications
You must be signed in to change notification settings - Fork 1.1k
In text diagrams, writing a classical bit is shown as a control while using it as a control is not shown as a control #5688
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
Comments
Would making the second one an "@" would be confusing, since it might make someone think it actually is a CNOT? Similarly for the first making it an "X" would also be slightly misleading in that people could think this means a measurement is a someone an "X" gate. |
But it is a controlled not. It's a classically controlled not. They wouldn't be confused about that, they would be right. In any case, the double lines on the vertical bar is a dead giveaway that it's classically controlled.
A measurement kinda is a NOT gate on a classical bit, controlled by a quantum bit. I don't think there's any physical experiment you can do that distinguishes "measurement" from "CNOT from qubit to bit where bit is promised to be initially OFF". |
I agree with changing the control to (I had also been thinking that we might want to add an "op" param to |
From Cirq sync - biggest question is whether changing text diagram output would be considered a breaking change. |
From Cirq sync:
Consensus: We should accept this as a bug and get fixed |
The
@
means control elsewhere in diagrams. The character below theM
isn't a control it's an output; it should probably be anX
. And the^
for the control on the NOT gate should be an@
since that means control.The text was updated successfully, but these errors were encountered: