beginner · Programming · The Qubit State Vector & Dirac Notation
Probability from Amplitude
Quantum mechanics does not say which outcome a measurement will produce — it says how likely each
outcome is. The rule that converts amplitudes into probabilities is called the Born rule.
Amplitudes and their squares
A single-qubit state is written as
∣ψ⟩=α∣0⟩+β∣1⟩,
where α and β are amplitudes — complex numbers that carry all the information about
the state. On their own, amplitudes are not probabilities. To get a probability you must square the
modulus of the amplitude:
P(0)=∣α∣2,P(1)=∣β∣2.
The normalization condition ∣α∣2+∣β∣2=1 guarantees that these probabilities always
add up to 1.
A worked example
Consider the state
∣ψ⟩=53∣0⟩+54∣1⟩.
Both coefficients are real and positive, so ∣α∣=53 and ∣β∣=54.
Squaring gives
P(0)=(53)2=259=0.36,P(1)=(54)2=2516=0.64.
Check: 0.36+0.64=1.00 ✓. The state is normalized because 3, 4, and 5 form a Pythagorean
triple (32+42=52), so dividing by 5 makes both coefficients valid.
Try it
A qubit is prepared in ∣ψ⟩=53∣0⟩+54∣1⟩. Apply the Born
rule and return P(0), the probability of measuring outcome 0.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.