The two expressions match, so ⟨A⟩=⟨ψ∣A∣ψ⟩ is not merely a definition — it is a consequence of the Born rule combined with linearity.
Computing it in matrix form
In any finite-dimensional basis, ∣ψ⟩ is a column vector and A is a square matrix. The bra ⟨ψ∣ is the conjugate-transpose row vector. The expectation value is then the ordinary matrix product
⟨A⟩=ψ†Aψ=∑i,jψi∗Aijψj.
Example — Pauli-Z in the ∣+⟩ state. The Pauli-Z operator is
σz=(100−1),
with eigenstates ∣0⟩ (eigenvalue +1) and ∣1⟩ (eigenvalue −1). The equal-superposition state is
∣+⟩=21∣0⟩+21∣1⟩↔ψ=21(11).
Step 1 — apply σz to ∣ψ⟩:
σzψ=21(1−1).
Step 2 — inner-product with ⟨ψ∣:
⟨σz⟩=21(11)⋅21(1−1)=21(1)+21(−1)=0.
The result is exactly 0, which makes sense: ∣+⟩ is an equal mixture of the +1 and −1 eigenstates of σz, so the average z-spin vanishes.
Try it
This is a numerical exercise — your code should return a number. Compute ⟨ψ∣σz∣ψ⟩ for the equal-superposition state ∣ψ⟩=∣+⟩.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.