Pauli-Z Gate
Track: Quantum Gates & Circuits · Difficulty: Beginner · Est: 13 min
Pauli-Z Gate
Overview
Pauli-Z (often just “Z”) is a single-qubit gate that illustrates a key quantum theme:
- you can change a state in a way that does not change computational-basis probabilities,
- yet still changes future measurement statistics in other bases.
Z is the canonical phase flip. It is one of the simplest examples of something with no true classical analogue.
Intuition
In the computational basis, the Z gate:
- leaves alone,
- multiplies by a minus sign.
That minus sign is a relative phase between the two basis components.
If you measure immediately in the computational basis, probabilities only depend on magnitudes like and . So a sign change may appear to “do nothing.”
But relative phase matters when amplitudes later interfere (for example, when you measure in a different basis). So Z changes the state in a way that becomes visible only in the right context.
On the Bloch sphere, Z corresponds to a 180° rotation about the axis. That means it flips the equator point at + to − (and + to −), while leaving the poles fixed.
Formal Description
Action on basis states
The defining action is
By linearity, for
we get
So Z keeps the amplitude and flips the sign (phase by ) of the amplitude.
Minimal matrix form
In the computational basis,
Read this as:
- the first component (the component) is unchanged,
- the second component (the component) gets a minus sign.
Worked Example
Start with
Apply Z:
Now notice:
- Measuring in the computational basis gives .
- Measuring in the computational basis also gives .
So Z does not change computational-basis probabilities for this input.
But and are perfectly distinguishable if you measure in the basis:
- gives “+” with probability 1.
- gives “−” with probability 1.
This is why Z has no clean classical analogue: it changes relative phase, which is only revealed through interference or a different measurement basis.
Turtle Tip
If a gate seems to “do nothing,” change the measurement basis. Phase changes often hide in the computational basis and show up elsewhere.
Common Pitfalls
- Don’t confuse a minus sign with “negative probability.” Probabilities come from squared magnitudes; a sign is a phase.
- Don’t assume phase is unphysical. Global phase is unobservable, but relative phase affects interference and other-basis measurements.
Quick Check
- What does Z do to the amplitudes of ?
- Why can Z change future measurement statistics even if computational-basis probabilities don’t change?
What’s Next
We now have two concrete Pauli gates:
- X (bit-flip-like),
- Z (phase-flip-like).
Next we will introduce another foundational single-qubit gate that creates and reveals interference in a very direct way, building on the phase intuition from Z.
