|q⟩ Bad Qubits

beginner · Programming · From Bits to Qubits

Amplitudes vs Probabilities

A quantum state is described by numbers called amplitudes — not probabilities. Every possible measurement outcome is assigned an amplitude, and those amplitudes can be negative or even complex. Probabilities only appear at the moment you measure.

The state vector

A single qubit in an arbitrary state is written

ψ=α0+β1,|\psi\rangle = \alpha|0\rangle + \beta|1\rangle,

where α\alpha and β\beta are complex numbers. The pair (α,β)(\alpha, \beta) is the state vector. The two coefficients must satisfy the normalisation condition

α2+β2=1,|\alpha|^2 + |\beta|^2 = 1,

which simply says "the total probability of all outcomes is 1."

The Born rule

When you measure ψ|\psi\rangle in the computational basis, the probability of each outcome is the squared magnitude of the corresponding amplitude:

P(0)=α2,P(1)=β2.P(0) = |\alpha|^2, \qquad P(1) = |\beta|^2.

This is the Born rule. It is one of the fundamental postulates of quantum mechanics — it cannot be derived from anything more basic; it is how theory connects to experiment.

For example, if α=35\alpha = \tfrac{3}{5} and β=45\beta = \tfrac{4}{5} (both real and positive), then

P(0)=(35)2=925=0.36,P(1)=(45)2=1625=0.64.P(0) = \left(\tfrac{3}{5}\right)^2 = \tfrac{9}{25} = 0.36, \qquad P(1) = \left(\tfrac{4}{5}\right)^2 = \tfrac{16}{25} = 0.64.

Note that 0.36+0.64=10.36 + 0.64 = 1, as required by normalisation. You can check: α2+β2=925+1625=2525=1\alpha^2 + \beta^2 = \tfrac{9}{25} + \tfrac{16}{25} = \tfrac{25}{25} = 1, so the state is indeed normalised.

Why amplitudes, not just probabilities?

A classical probability distribution over {0, 1} is just two non-negative numbers that sum to 1. The extra freedom in amplitudes — the ability to be negative or complex — is what allows quantum states to interfere. Two paths to the same outcome can have amplitudes that cancel (destructive interference) or reinforce (constructive interference). This interference is the engine behind quantum algorithms like Grover search and the quantum Fourier transform; it has no classical analogue.

Try it

Apply the Born rule to find the probability of measuring 1|1\rangle for the state 350+451\tfrac{3}{5}|0\rangle + \tfrac{4}{5}|1\rangle.

Run your code to see the quantum state.

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