Pauli-X Gate
Track: Quantum Gates & Circuits · Difficulty: Beginner · Est: 12 min
Pauli-X Gate
Overview
The first named gate to learn is Pauli-X (often just “X”).
It is the closest single-qubit gate to a classical NOT:
- it swaps and .
But because it is a quantum gate, it also acts sensibly on superpositions. This page builds both the basis-state intuition and the Bloch-sphere picture.
Intuition
In the Bloch-sphere picture:
- is the + direction (north pole).
- is the − direction (south pole).
The X gate flips those two poles. So it acts like a 180° rotation that sends + to −.
It also flips any state’s Bloch vector accordingly. If a state points somewhere on the sphere, X rotates it to the opposite point across the -axis rotation.
A key idea:
- gates don’t just change probabilities; they can change the direction of a superposition on the sphere.
Formal Description
Action on basis states
The defining action is
By linearity, this already tells you what X does to any superposition. For example, if
then
So X swaps the amplitudes associated with and .
Minimal matrix form (introduced gently)
If we write states as coordinate vectors in the computational basis, X can be represented by a 2×2 matrix.
We choose the basis vectors as
The unique matrix that sends to and to is
Read the matrix as “swap the two components.”
Worked Example
Take the state
Apply X:
So the probabilities in the computational basis are swapped:
- before: ,
- after: ,
Bloch-sphere interpretation:
- X flips the state across a 180° rotation about the axis.
Turtle Tip
To learn a gate quickly, memorize what it does to and , then use linearity to handle any superposition.
Common Pitfalls
- Don’t think X “measures and flips.” X is not measurement; it is deterministic evolution.
- Don’t assume X always “makes randomness.” It only swaps amplitudes; whether outcomes look random depends on the state and the measurement basis.
Quick Check
- If , what is ?
- Geometrically on the Bloch sphere, what kind of rotation is X?
What’s Next
X is the “bit-flip-like” Pauli gate. Next we study Pauli-Z, which leaves computational-basis probabilities unchanged but changes relative phase—a deeply quantum effect.
