You’ve already clicked the X, Y, and Z buttons in the Hadamard lesson. Now we look at them properly. These three are the Pauli gates, named after Wolfgang Pauli. They are the three “natural” gates for a spin- system, and every other single-qubit gate you will ever see can be written as a combination of them.
If single-qubit gates are words, the Paulis are the letters.
The three gates
Here they are, with matrices and Bloch-sphere interpretations:
Pauli-X — the quantum bit flip:
swaps and . Geometrically, it’s a rotation of around the -axis of the Bloch sphere. It’s the quantum version of the classical NOT gate.
Pauli-Y — the “both at once” flip:
also swaps and , but it also multiplies the amplitudes by . Geometrically, it’s a rotation of around the -axis. Notice that — it’s “X and Z combined,” with a global phase.
Pauli-Z — the phase flip:
leaves alone and multiplies by . Looking at the computational-basis probabilities, nothing happens — and (which is still up to global phase). But on a superposition, introduces a minus sign between the two components — and that relative phase is very visible. Geometrically, it’s a rotation of around the -axis.
See them in action
Click through the three gates below. Start from . Try applying each Pauli on its own. Then try combinations.
Some things to notice as you play:
- Apply . The qubit flips from to . Apply again — back to . So . Same for and .
- Start from and apply . Nothing seems to change — the Bloch sphere still points at the north pole. That’s because : the state is an eigenstate of with eigenvalue .
- Apply first (making ), then . Now look at the Bloch sphere — the arrow has moved from to . The gate, invisible on alone, is very visible on superpositions.
- Try . You should get . Try . You should get . This is a crucial identity: the Hadamard swaps and .
A useful identity: anticommutation
The Pauli gates don’t commute with each other. They do something stronger — they anticommute:
Each pair of Paulis, when you swap the order, picks up a minus sign. This is another way of saying that the three Bloch-sphere axes are mutually perpendicular — a rotation around followed by a rotation around is different from the other way around.
You can also write the three Pauli relations in a compact form: for any two different Paulis ,
where is the third Pauli, following the cyclic order . For example, , , .
Why ‘Pauli’?
In 1925, Wolfgang Pauli wrote down three matrices to describe the spin of an electron — a genuinely quantum property with no classical analog. Those matrices are exactly , , . The same three operators that describe a spin- particle’s behavior describe a qubit, because a qubit is — from a mathematical standpoint — a spin- system. The words “qubit” and “spin” are almost interchangeable if you squint.
What’s next
The Paulis are three “big steps” — each a rotation of exactly . In Lesson 3.3 we meet the phase gates and : smaller, more subtle rotations around the -axis. Then in Lesson 3.4 we make those rotations continuous — you’ll get a slider and be able to rotate by any angle you like.