Flips the sign of the amplitude without changing .
The Z gate multiplies the amplitude by −1 and leaves the amplitude alone. If the state is , it becomes − . This sign change is called a phase flip. It does not change measurement probabilities in the computational basis at all, because probabilities depend on the magnitude of the amplitudes, not their signs. The effect only shows up when a later gate (like H) converts the sign difference into a measurable probability change through interference.
Pauli-Z is diagonal in the computational basis (meaning it acts on each basis state independently, without mixing them). Its eigenvalues are +1 for and −1 for . An eigenvalue is the factor a state gets multiplied by when the operator acts on it, and an eigenstate is a state that only gets scaled (not changed in direction) by the operator. Z leaves unchanged and multiplies by −1. On the Bloch sphere, this is a 180° rotation around the Z axis. Z is Hermitian (equal to its own conjugate transpose) and involutory (Z² = I). Because and are eigenstates of Z, measuring in the computational basis after Z shows no change. The effect becomes visible only after a basis change, such as applying H.
No change to the measurement histogram when measuring in the computational basis immediately after Z.
The relative phase (the sign relationship between the and amplitudes) flips. A later Hadamard reveals this as a bit flip, because HZH = X.
Rotates the Bloch vector 180° around the Z axis. The poles ( and stay fixed because they lie on the rotation axis. Equatorial states move to the opposite side of the equator.
It is tempting to think Z does nothing because the measurement histogram looks unchanged. That sounds reasonable because probabilities depend on amplitude magnitudes, not signs. What actually happens is that Z changes the relative phase, and relative phase is the resource that drives interference in every quantum algorithm.
Z teaches the central lesson of quantum computing: phase is information. You cannot see it directly in a single measurement, but every quantum algorithm depends on manipulating phase and then using interference to convert phase differences into measurable probability differences.
You apply Z to a qubit in |0⟩. What changes?