Normalization
A qubit's state is a vector in a two-dimensional complex vector space. We write it as
where and are complex numbers called probability amplitudes. The Born rule says that if you measure the qubit, you get outcome with probability and outcome with probability .
Because probabilities must add to one, the amplitudes are constrained:
This is the normalization condition. Geometrically, it means the state vector lies on the unit sphere in the two-dimensional complex Hilbert space (a three-sphere when viewed as a subset of ). The familiar Bloch sphere () is the quotient of that by global phase: two normalized states that differ only by an overall factor are physically identical, and collapsing those equivalence classes maps onto the real two-sphere .
Why normalization matters
Every legal qubit state satisfies the normalization condition exactly. Any vector that does not satisfy it cannot represent a physical state, because the predicted probabilities would not sum to one — a logical impossibility. Normalization is therefore the first sanity check to run on any purported qubit state.
Checking norm in code
In practice you compute the norm squared
and check whether it equals within a small numerical tolerance. Floating-point arithmetic introduces rounding errors of order , so a tolerance of gives a safe margin while still catching states that are genuinely un-normalized.
For example, the equal-superposition state has
so it is correctly normalized.
Try it
Complete the function below to verify that the given amplitudes describe a normalized qubit state.
Return true if the norm squared is within of , and false otherwise.
Sign in on the full site to ask questions and join the discussion.