beginner · Programming · The Qubit State Vector & Dirac Notation
Kets: |ψ⟩ Notation
Every quantum state is written using a compact notation invented by Paul Dirac. The symbol
∣ψ⟩ is called a ket — it is simply a label for a state vector. For a single qubit, the
two standard building blocks are ∣0⟩ and ∣1⟩, called the computational basis
states.
Kets as column vectors
Behind the label is an ordinary column vector. The correspondence is
∣0⟩=(10),∣1⟩=(01).
Any single-qubit state ∣ψ⟩ is a superposition — a linear combination with complex
coefficients called amplitudes:
∣ψ⟩=α∣0⟩+β∣1⟩=(αβ),
where α,β∈C and the normalization condition ∣α∣2+∣β∣2=1
must hold so that measurement probabilities sum to one.
Reading off probabilities
Once you have a ket, the Born rule turns amplitudes into probabilities. The probability of
observing outcome b∈{0,1} when measuring in the computational basis is
P(b)=∣⟨b∣ψ⟩∣2=∣amplitude of ∣b⟩∣2.
For example, consider the normalized state
∣ψ⟩=23∣0⟩+21∣1⟩=(2321).
Reading off the amplitudes: α=23 and β=21. The probabilities are
P(0)=232=43,P(1)=212=41.
These sum to one, confirming the state is normalized: 43+41=1.
Try it
Apply the Born rule to the state ∣ψ⟩=23∣0⟩+21∣1⟩
and return P(1), the probability of measuring outcome 1.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.