The Y Gate
The three Pauli gates — , , and — form a natural family. You have already seen (the bit-flip). Now meet , the gate that flips both the amplitude values and introduces an imaginary factor.
What Y does
Acting on the computational basis states, the Pauli-Y gate gives
Its matrix is
The imaginary unit in the off-diagonal entries is what sets apart from . You can verify the first rule directly: multiply by the column vector and you get , which represents the state .
Relating Y to X and Z
The Pauli matrices satisfy a compact product identity:
To check it, multiply the matrices step by step. First compute
then multiply by :
On the Bloch sphere, is a 180° rotation about the -axis. By comparison, rotates about and rotates about . All three Pauli gates are their own inverses: . You can confirm this by direct multiplication, or by noting that is both unitary (, so ) and Hermitian (); combining these gives , hence .
Try it
Apply to a qubit starting in . The simulator will compare the full state vector, so a do-nothing circuit will not pass.
After running, the amplitude on should be and the amplitude on should be
. The measurement probability is entirely on outcome 1, just as with — but the
amplitude carries an extra factor of .
Sign in on the full site to ask questions and join the discussion.