Level 2, Tinkerer
Y gate
The Y gate swaps the two amplitudes, then multiplies the new amplitude for 0 by minus i and the new amplitude for 1 by i. Here i is the imaginary unit, the number whose square is minus one. On the Bloch sphere, the globe used to draw a single qubit, that rule is a half turn about the y axis. In the usual textbook drawing that axis points to the right.
From the state certain to read 0, Y produces the state certain to read 1 with a factor of i on the whole state. A measurement on its own still reads 1. The i only matters on a state with both amplitudes, where Y gives the amplitude for 0 a minus i instead.
An example
Take a qubit with 0.6 for 0 and 0.8 for 1. Y swaps the two numbers and multiplies them by −i and i. That gives −0.8i for 0 and 0.6i for 1. The squared sizes are 0.64 and 0.36, since |i|² = 1. X would give the same chances, with 0.8 and 0.6.
Now pull an i out to the front, so the pair is written as i times −0.8 and 0.6. That i sits on the whole state, so it is a global phase, and no measurement can see it. Drop it, and Y has left a minus on the amplitude for 0.
That minus shows after H. On the result of X, H gives a sum of 1.4 and a difference of 0.2. Square each and halve it, and the qubit reads 0 in about 98 runs out of 100. On the result of Y, with the i dropped, the sum is −0.2 and the difference is −1.4. Now it reads 1 in about 98 runs out of 100.
So Y is Z, then X, then an overall i. Check it. Z gives 0.6 and −0.8, X gives −0.8 and 0.6, and the i gives −0.8i and 0.6i.
On the globe, Y carries the north pole to the south pole, as X does, and |+⟩ to |−⟩, as Z does, each up to an overall factor.
What it is not
Y is not X with a harmless i on top. Y puts −i on one amplitude and i on the other, and those differ by a minus that H can read.
The i is not unreal, either. It records an angle, and on a chip Y is a pulse like any other.
Related words
Y is the Z gate and the X gate in one press, plus a global phase. The i is a complex number, and the axis is drawn on the Bloch sphere. Which Matrix writes Y as a table of numbers.
Used in
Longer explanation: Quantum gates explained