beginner · Programming · The Qubit State Vector & Dirac Notation
Bras and Inner Products
Dirac notation pairs every ket ∣ψ⟩ with a bra⟨ψ∣. If the ket is a column
vector, the bra is its conjugate transpose — a row vector whose entries are the complex conjugates
of the ket's entries. Together they give a compact way to write the inner product of two quantum states.
From kets to bras
For a general single-qubit ket ∣ψ⟩=α∣0⟩+β∣1⟩, the column-vector
form is
∣ψ⟩=(αβ).
The corresponding bra is
⟨ψ∣=(α∗β∗),
where α∗ denotes the complex conjugate of α. When the amplitudes are real — as they are
for the states we will study first — conjugation does nothing and the bra is just the row version of
the ket.
The inner product
The inner product⟨φ∣ψ⟩ is defined by multiplying the row vector
⟨φ∣ by the column vector ∣ψ⟩ in the usual matrix-multiplication sense:
⟨φ∣ψ⟩=∑iφi∗ψi.
Two important properties follow directly from this definition:
Normalization:⟨ψ∣ψ⟩=1 for any physical (unit-norm) state. This is just the
statement that the probabilities sum to one.
Orthogonality of basis states:⟨0∣1⟩=0 and ⟨1∣0⟩=0, while
⟨0∣0⟩=⟨1∣1⟩=1.
A worked example
The state ∣+⟩=21∣0⟩+21∣1⟩ has the column
representation
∣+⟩=21(11).
Its bra is therefore ⟨+∣=21(11).
The inner product with ∣0⟩=(01) is
⟨+∣0⟩=21(11)(10)=21⋅1+21⋅0=21.
Squaring the magnitude gives ∣⟨+∣0⟩∣2=21, which is exactly the 50 % chance
of measuring 0 in the state ∣+⟩ — confirming that the inner product carries the measurement
probability we already know from the Born rule.
Try it
Compute the numerical value of ⟨+∣0⟩ and return it.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.