|q⟩ Bad Qubits

beginner · Physics · Math Foundations: Complex Numbers

Phases as Unit Complex Numbers

In quantum mechanics every amplitude is a complex number, but two amplitudes that differ only by a global phase are physically indistinguishable. What distinguishes them is the relative phase between components of a state. To handle phases cleanly it helps to think of them as points on the unit circle in the complex plane.

The unit circle and Euler's formula

A complex number zz lies on the unit circle when its modulus equals one: z=1|z| = 1. Every such point can be written

z=eiθ=cosθ+isinθ,z = e^{i\theta} = \cos\theta + i\sin\theta,

where θR\theta \in \mathbb{R} is the argument (angle measured counter-clockwise from the positive real axis). This identity is Euler's formula, and it is the starting point for almost all phase arithmetic in quantum theory.

A few landmarks on the unit circle are worth memorising:

| θ\theta | eiθe^{i\theta} | |---|---| | 00 | 11 | | π/2\pi/2 | ii | | π\pi | 1-1 | | 3π/23\pi/2 | i-i | | 2π2\pi | 11 (one full turn) |

Each entry follows directly from cos\cos and sin\sin at the corresponding angle.

Phases in quantum states

A single-qubit state is written ψ=α0+β1|\psi\rangle = \alpha|0\rangle + \beta|1\rangle with α2+β2=1|\alpha|^2 + |\beta|^2 = 1. Because α|\alpha| and β|\beta| are fixed by the probabilities, the remaining freedom lies entirely in the arguments of α\alpha and β\beta. A common parametrisation writes

ψ=cos ⁣(θ2)0+eiϕsin ⁣(θ2)1,|\psi\rangle = \cos\!\left(\tfrac{\theta}{2}\right)|0\rangle + e^{i\phi}\sin\!\left(\tfrac{\theta}{2}\right)|1\rangle,

where ϕ\phi is the relative phase. The factor eiϕe^{i\phi} is a unit complex number: it does not change any probability, but it controls how two such states interfere when combined. Interference is the engine behind quantum speedups, so the precise value of ϕ\phi matters enormously.

Multiplying phases

Because eiθ=1|e^{i\theta}| = 1 for all real θ\theta, the product of any two unit complex numbers is again a unit complex number:

eiαeiβ=ei(α+β).e^{i\alpha} \cdot e^{i\beta} = e^{i(\alpha + \beta)}.

Applying two phase shifts in sequence is therefore equivalent to adding their angles. This simple addition rule is what makes the Bloch-sphere picture work. The cleanest way to inject a relative phase ϕ\phi is the phase gate P(ϕ)=diag(1,eiϕ)P(\phi) = \mathrm{diag}(1, e^{i\phi}), which leaves the amplitude of 0|0\rangle untouched and multiplies the amplitude of 1|1\rangle by eiϕe^{i\phi}, shifting the relative phase by exactly ϕ\phi. The closely related zz-rotation gate Rz(ϕ)=diag(eiϕ/2,eiϕ/2)R_z(\phi) = \mathrm{diag}(e^{-i\phi/2}, e^{i\phi/2}) spreads the same relative phase ϕ\phi symmetrically across the two components; it agrees with P(ϕ)P(\phi) up to an overall global phase eiϕ/2e^{-i\phi/2}, which (being global) is physically irrelevant.

Try it

This is a numerical exercise — your code should return a number. Compute the real part of the unit complex number eiπ/3e^{i\pi/3} (the phase corresponding to an angle of 60°60°).

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.