← Back to section · Quantum Computing

The Density Matrix: When a Quantum State Can Only Be Described Probabilistically

Introducing the density matrix ρ from the outer product of a pure state: the ensemble meaning of mixed states, the Tr(ρ²) criterion, the relation between Bloch-vector length and purity, and why the partial trace makes entangled subsystems necessarily mixed.

Published 22 November 2026 · 6 min read · PQ Frontier

The Density Matrix: When a Quantum State Can Only Be Described Probabilistically
AI-generated site artwork
Video explainer · The Qubit: writing a state

Why the State Vector Is Not Enough

The state vector ∣ψ⟩|\psi\rangle presumes complete knowledge of the system. In real situations this fails in at least three ways: the preparation device is noisy, so the system is in different states ∣ψi⟩|\psi_i\rangle with probabilities pip_i; we care only about a small part of a larger system and “ignore” the remaining degrees of freedom; or the system is entangled with an environment we cannot access. What these cases share is that the most complete description we can write down is no longer a single vector but a weighted ensemble. The density matrix is the language built for exactly this. For a pure state it is defined as the outer product ρ=∣ψ⟩⟨ψ∣\rho = |\psi\rangle\langle\psi|; for an ensemble it is the weighted sum:

ρ=∑ipi ∣ψi⟩⟨ψi∣,pi≥0,  ∑ipi=1\rho = \sum_i p_i \, |\psi_i\rangle\langle\psi_i|, \quad p_i \ge 0, \; \sum_i p_i = 1

This definition guarantees three properties: ρ\rho is Hermitian, its eigenvalues are non-negative (positive semidefinite), and its trace equals 1. Conversely, any matrix with these three properties is the density matrix of some physical state. Measurement statistics are rewritten accordingly: the expectation of an observable AA is ⟨A⟩=Tr(ρA)\langle A \rangle = \mathrm{Tr}(\rho A), and the probability of a projective measurement outcome is Tr(ρPi)\mathrm{Tr}(\rho P_i). The key fact is that no experiment whatsoever can distinguish different ensemble decompositions of the same ρ — the ρ=I/2\rho = I/2 obtained by mixing ∣0⟩|0\rangle and ∣1⟩|1\rangle fifty-fifty is identical to the one obtained by mixing ∣+⟩|+\rangle and ∣−⟩|-\rangle fifty-fifty. The “recipe” of the ensemble is not physical reality; ρ\rho is.

A Concrete Example: Two Kinds of “Fifty-Fifty”

The abstract definition easily misleads one into thinking a mixed state is merely “a pure state we don’t know.” An example draws the boundary sharply. Compare two ensembles: ensemble A prepares ∣0⟩|0\rangle with probability one half and ∣1⟩|1\rangle with probability one half; ensemble B prepares the definite pure state ∣+⟩|+\rangle. Both give fifty-fifty 0 and 1 in the computational basis and look indistinguishable. But the density matrices separate them at once: A gives ρ=12∣0⟩⟨0∣+12∣1⟩⟨1∣=I/2\rho = \frac{1}{2}|0\rangle\langle 0| + \frac{1}{2}|1\rangle\langle 1| = I/2, with diagonal entries of one half and zero off-diagonal entries; B gives ρ=∣+⟩⟨+∣\rho = |+\rangle\langle +|, all four entries equal to 12\frac{1}{2}. The entire difference lies in the off-diagonal entries — the coherences, which encode the phase relations of the superposition. Measure in the x basis and B always yields ”+”, while A remains fifty-fifty: experimentally completely distinguishable. The lesson is that a mixed state is not “a hidden pure state”; the absence of coherences is its real, measurable physical content. This is exactly why decoherence is so dangerous: it specifically kills the off-diagonal entries, turning a pure superposition like B into a classical mixture like A, while the diagonal entries (the populations) can remain perfectly intact.

Purity: One Number Separating Pure from Mixed

How do we tell whether a given ρ\rho is pure or mixed? The standard criterion is the purity Tr(ρ2)\mathrm{Tr}(\rho^2): it equals 1 for pure states, is strictly less than 1 for mixed states, and attains its minimum 1/d1/d for the maximally mixed state I/dI/d in dimension dd. Equivalently, a pure state’s ρ\rho is a projector, satisfying ρ2=ρ\rho^2 = \rho. For a single qubit the picture has an especially intuitive geometric version. Any single-qubit density matrix can be expanded as

ρ=12(I+r⃗⋅σ⃗)\rho = \frac{1}{2}\left(I + \vec{r}\cdot\vec{\sigma}\right)

where σ⃗\vec{\sigma} collects the three Pauli matrices and r⃗\vec{r} is a real three-dimensional vector — the Bloch vector. Purity ties directly to its length: Tr(ρ2)=12(1+∣r⃗∣2)\mathrm{Tr}(\rho^2) = \frac{1}{2}(1 + |\vec{r}|^2). When ∣r⃗∣=1|\vec{r}| = 1 the point lies on the sphere and the state is pure; when ∣r⃗∣<1|\vec{r}| < 1 the point is inside the ball and the state is mixed; when r⃗=0\vec{r} = 0 we have the maximally mixed state I/2I/2 at the center, which gives completely random outcomes in every basis. Decoherence, geometrically, is the process of r⃗\vec{r} steadily shrinking — which sets up the coordinate system for the later discussion of T1T_1 and T2T_2.

How the Density Matrix Evolves and Is Measured

Under unitary evolution a state vector transforms as ∣ψ⟩→U∣ψ⟩|\psi\rangle \to U|\psi\rangle; the corresponding rule for the density matrix is ρ→UρU†\rho \to U\rho U^\dagger: both the outer product of a pure state and the weighted sum of an ensemble behave consistently under this rule, and the global phase cancels automatically. If system and environment evolve unitarily together and we then look only at the system (tracing out the environment), we obtain open-system dynamics — irreversible processes such as decoherence and relaxation all appear in this “unitary evolution plus partial trace” form, whose most general mathematical characterization is a completely positive trace-preserving map (a quantum channel). In continuous time, the density matrix of a closed system obeys the von Neumann equation iℏdρdt=[H,ρ]i\hbar \frac{d\rho}{dt} = [H, \rho], the ensemble version of the Schrödinger equation; open systems add dissipative terms via the Lindblad master equation.

Measurement is equally uniform in the density-matrix language: the probability of a projective measurement outcome is Tr(ρPi)\mathrm{Tr}(\rho P_i), and the post-measurement state is updated by the Lüders rule. Note one easily confused point: the “mixture” produced by a measurement and the “mixture” from ensemble preparation look identical in ρ\rho but have different origins — the former comes from discarding the measurement record (or from the record’s own randomness), the latter from uncertainty at the preparation stage. But as noted before, no subsequent experiment can distinguish the sources of the same ρ\rho; that is precisely what it means for the density matrix to be a complete description: it exhausts all observable information — one bit less would be insufficient, one bit more unknowable.

The Partial Trace: Entanglement Looks Mixed Locally

The real power of the density matrix shows up in composite systems. Let two qubits be in the Bell state ∣Φ+⟩=12(∣00⟩+∣11⟩)|\Phi^+\rangle = \frac{1}{\sqrt2}(|00\rangle + |11\rangle); the whole is pure, with ρ=∣Φ+⟩⟨Φ+∣\rho = |\Phi^+\rangle\langle\Phi^+|. If we care only about the first qubit, we take the partial trace over the second: trace over the second system’s basis, “integrating out” its degrees of freedom. The result is the reduced density matrix ρA=TrB(ρ)=I/2\rho_A = \mathrm{Tr}_B(\rho) = I/2 — the first qubit, viewed alone, is maximally mixed. This mixture is not caused by preparation noise; it is the necessary consequence of entanglement: the whole can be completely determined while each part is completely undetermined, because the information lives in the correlations between the parts, not in either part alone.

The partial trace also gives a criterion in reverse (for a pure global state): a subsystem’s reduced state is pure if and only if the global state is a product state with no entanglement. Hence “how mixed the reduced state is” becomes a yardstick for entanglement (the von Neumann entropy S(ρA)=−Tr(ρAlog⁡ρA)S(\rho_A) = -\mathrm{Tr}(\rho_A \log \rho_A) is its standard form). Put numbers on the two extremes: the product state ∣00⟩|00\rangle has a pure reduced state ∣0⟩⟨0∣|0\rangle\langle 0| with entropy 0; the Bell state has reduced state I/2I/2 with entropy 1 (logarithm base 2, i.e. one bit of entropy), the maximum a single side of a two-qubit system can reach. A general state’s entanglement entropy falls between these ends, rising smoothly from 0 to the maximum with the distribution of the Schmidt coefficients. This is why the density matrix is the primary language of quantum information: open-system dynamics, noise models in error correction, and entanglement measures are all built on it. The state vector is a special case of it — the special case of complete information.

Tags: density matrixmixed statespartial trace