Two quantum states can look identical under one measurement and yet produce completely different
results under another. The key ingredient is phase — and not all phase is equal.
Global phase versus relative phase
A single-qubit state ∣ψ⟩=α∣0⟩+β∣1⟩ has an overall
global phaseeiϕ if both amplitudes are multiplied by the same complex factor:
eiϕ∣ψ⟩=eiϕα∣0⟩+eiϕβ∣1⟩.
The Born rule gives P(0)=∣eiϕα∣2=∣α∣2, and similarly for P(1). The factor
eiϕ cancels out of every probability regardless of which basis you measure in, so two states
that differ only by a global phase are physically indistinguishable.
Relative phase is different. It is the phase difference between the amplitudes of distinct basis
states. Compare these two states:
∣+⟩=21(∣0⟩+∣1⟩),∣−⟩=21(∣0⟩−∣1⟩).
Both give P(0)=P(1)=21 in the computational (Z) basis — so far identical. But
∣−⟩ carries a relative phase of −1 (equivalently, eiπ) between ∣0⟩ and
∣1⟩. That sign is undetectable by a Z-basis measurement alone.
Interference reveals the difference
Apply the Hadamard gate to each state. Using
H∣0⟩=21(∣0⟩+∣1⟩) and
H∣1⟩=21(∣0⟩−∣1⟩):
Measuring after H, the two states give opposite deterministic outcomes: ∣+⟩→0
and ∣−⟩→1. The Hadamard exposed the relative phase by creating an interference
experiment: in H∣+⟩ the ∣1⟩ amplitudes cancel (destructive interference),
while in H∣−⟩ they add (constructive interference on ∣1⟩ and destructive on
∣0⟩).
This is exactly the mechanism quantum algorithms exploit. Grover's search, Deutsch–Jozsa, and the
quantum Fourier transform all work by engineering constructive interference on the answer and
destructive interference on wrong paths — the relative phases do the work.
Try it
Prepare the state ∣−⟩=21(∣0⟩−∣1⟩). The grader checks
the full state vector, so you must set the relative phase correctly — producing ∣+⟩
instead will not pass.
Run your code to see the quantum state.
After running, inspect the amplitudes: both have magnitude 21≈0.707, but
the ∣1⟩ amplitude is −21. That minus sign is the relative phase in
action.
Sign in on the full site to ask questions and join the discussion.