States, Operators & Measurement
Quantum Physics
What you need to know first 1 concepts, 1 layers
The requisite-knowledge inventory for this page, bottom-up: the primitives at the base, combined upward until you reach what this page assumes. Skim the layers you already own; start wherever the ground gets unfamiliar.
- base
- Linear algebraconcept
- ↳you are here
1 of these are concepts without a dedicated page yet — the grey chips. Following the linked ones first makes the rest land.
All of quantum mechanics fits in five sentences. A system's state is a unit vector in a complex vector space. Observables are Hermitian operators on that space. Measuring an observable returns one of its eigenvalues, with probability given by the squared amplitude of along the matching eigenvector. The measurement leaves the system in that eigenvector. And between measurements the state rotates smoothly under . Everything else — atoms, chemistry, lasers, the rest of this course — is those five sentences applied with stamina. This page makes each one concrete on the smallest system that has any physics in it: two states.
A state is a direction, not a place
Take a spin-1/2 particle and pick a measurement axis, conventionally . There are exactly two outcomes, so the state space is two-dimensional, spanned by and . The most general state is
two real numbers, one point on a sphere. Notice what the state is not: it is not "the particle is up with some chance and down with some chance." A coin on a table is that. The complex phase is the difference — it carries physics the coin has no slot for, and every interference effect lives in it. Make it concrete: set , . The amplitudes are , and their squared magnitudes sum to 1 — that normalization is the entire "unit vector" clause.
The Born rule: amplitudes squared
Measure in that state. The outcome is one of the two eigenvalues — never anything in between, no matter how the state points — and the probability of is the squared amplitude on :
A single measurement tells you almost nothing — you get one bit. The probabilities are what you reconstruct by preparing the same state a thousand times and counting. That distinction, between the state (which you prepare) and the statistics (which you observe), is the part of the postulates most worth internalizing early.
Observables are Hermitian matrices; expectations are sandwiches
On two states, every observable is a 2×2 Hermitian matrix. The spin components are (in units of ):
Hermitian is not decoration: it guarantees real eigenvalues (outcomes are real numbers) and orthogonal eigenvectors (distinct outcomes are perfectly distinguishable). The average outcome over many repetitions is the sandwich . For our concrete state, computing all three (the code below does it):
Those three numbers are the Cartesian coordinates of the point on a sphere of radius 1/2 — the state is a direction, and the expectation values are how you read it out. No single measurement returns 0.1915; every measurement returns , and 0.1915 is what the average converges to.
What does not commute cannot be pinned at once
The spin matrices refuse to commute: . The general uncertainty relation turns that algebra into a bound on statistics,
and the bound is checkable arithmetic, not philosophy. For our state: against — satisfied with 0.012 to spare. Sharpen your knowledge of and the spread in must grow, because the operators share no eigenvectors. Every "uncertainty principle" headline is this one line of linear algebra wearing a trench coat.
import numpy as np
# state: cos(t/2)|up> + e^{i phi} sin(t/2)|down>, theta = 50 deg, phi = 60 deg
t, phi = np.radians(50), np.radians(60)
psi = np.array([np.cos(t/2), np.exp(1j*phi)*np.sin(t/2)])
sx = np.array([[0, 1], [1, 0]])/2 # spin operators, hbar = 1
sy = np.array([[0, -1j], [1j, 0]])/2
sz = np.array([[1, 0], [0, -1]])/2
ev = lambda A: np.real(psi.conj() @ A @ psi) # <psi|A|psi>
dS = lambda A: np.sqrt(ev(A @ A) - ev(A)**2) # spread
print(ev(sx), ev(sy), ev(sz)) # 0.1915 0.3317 0.3214
print(abs(psi[0])**2) # 0.8214 = P(measure Sz -> +1/2)
print(dS(sx)*dS(sy), abs(ev(sz))/2) # 0.1728 >= 0.1607 (uncertainty) Collapse, and why repeat measurements agree
Measurement changes the state: get and the state is now , whatever it was before. Measure again immediately and you get with probability 1 — reproducibility is built into the postulate, because is an eigenvector. But measure next and you are back to a coin flip: has equal amplitudes along both eigenvectors. The order of measurements matters exactly when the operators fail to commute — the same from above, now as an experimental protocol rather than an inequality.
Where to next: the dynamics postulate — how rotates the state between measurements — gets its full workout on two-level systems, where the whole Schrödinger equation is a 2×2 matrix you can diagonalize by hand. Bound states in a potential start at the particle in a box. And when light enters the story, the operator that matters is the dipole.
Try First
Each prompt asks a checkable question about the working code or math above — predict an output, derive a sign, state an invariant, find a bug. Commit to an answer before clicking "reveal." That commitment is the whole point: if your answer matched, you understand the piece you were looking at; if it didn't, that's the part worth re-reading.