Skip to content

Density Operators

A density operator ρ\rho is a positive, trace-one operator representing a quantum state. It includes state vectors as a special case but also describes statistical preparation uncertainty, subsystems entangled with other degrees of freedom, thermal equilibrium states, and states evolving under noise.

Required background. State Vectors supplies the pure-state language, and Expectation Values supplies the trace-rule target. Familiarity with traces, eigenvalues, and positive semidefinite matrices is assumed.

In a finite-dimensional Hilbert space, the defining conditions are

ρ≥0,Tr⁡ρ=1.\rho\ge0, \qquad \operatorname{Tr}\rho=1.

Positivity entails Hermiticity, although in calculations it is often useful to check all three matrix conditions explicitly:

ρ†=ρ,ρ≥0,Tr⁡ρ=1.\rho^\dagger=\rho, \qquad \rho\ge0, \qquad \operatorname{Tr}\rho=1.

The operator ρ\rho is the state. A density matrix is its matrix in a chosen basis.

A normalized vector ∣ψ⟩\lvert\psi\rangle completely describes a pure state of a closed system. Three common situations require a more general state language.

Suppose a source prepares ∣ψk⟩\lvert\psi_k\rangle with probability pkp_k. If the classical label kk is unavailable, predictions are governed by

ρ=∑kpk ∣ψk⟩⟨ψk∣,∑kpk=1.\rho = \sum_k p_k\, \lvert\psi_k\rangle\langle\psi_k\rvert, \qquad \sum_k p_k=1.

Unless all preparations represent the same ray, no single state vector reproduces every measurement probability.

A composite system may be in a pure state while one subsystem is not. For the Bell state

∣Φ+⟩=∣00⟩+∣11⟩2,\lvert\Phi^+\rangle = \frac{ \lvert00\rangle+\lvert11\rangle }{\sqrt2},

the state of the first qubit is

ρA=Tr⁡B(∣Φ+⟩⟨Φ+∣)=I22.\rho_A = \operatorname{Tr}_B \left( \lvert\Phi^+\rangle\langle\Phi^+\rvert \right) = \frac{I_2}{2}.

There is no vector in HA\mathcal H_A whose projector equals I2/2I_2/2.

Equilibrium statistical mechanics uses density operators such as

ρβ=e−βHZ,Z=Tr⁡(e−βH).\rho_\beta = \frac{e^{-\beta H}}{Z}, \qquad Z=\operatorname{Tr}(e^{-\beta H}).

Open-system dynamics likewise maps density operators to density operators. The state-vector formalism remains valid for a sufficiently large closed system, but density operators are the natural variables for the subsystem actually modeled.

For any vector ∣φ⟩\lvert\varphi\rangle, positivity means

⟨φ∣ρ∣φ⟩≥0.\langle\varphi\rvert \rho \lvert\varphi\rangle \ge0.

In finite dimensions, the spectral theorem gives

ρ=∑r=1dλr∣r⟩⟨r∣,\rho = \sum_{r=1}^{d} \lambda_r \lvert r\rangle\langle r\rvert,

where the eigenvectors may be chosen orthonormal. The density-operator conditions are equivalent to

λr≥0,∑r=1dλr=1.\lambda_r\ge0, \qquad \sum_{r=1}^{d}\lambda_r=1.

Consequently,

0≤λr≤1,0≤ρ≤I.0\le\lambda_r\le1, \qquad 0\le\rho\le I.

The trace-one condition fixes total probability. Positivity ensures that every measurement effect has a nonnegative probability. Hermiticity ensures real expectation values for observables.

On an infinite-dimensional Hilbert space, a density operator is a positive trace-class operator with unit trace. Trace class is essential: a positive bounded operator need not have a finite trace. The spectral decomposition may contain countably many nonzero eigenvalues accumulating at zero. Continuous-spectrum subtleties belong to the operator-theory treatment; the finite-dimensional rules below remain the basic model.

In an orthonormal basis {∣i⟩}\{\lvert i\rangle\},

ρij=⟨i∣ρ∣j⟩.\rho_{ij} = \langle i\rvert\rho\lvert j\rangle.

The diagonal entry

ρii=⟨i∣ρ∣i⟩\rho_{ii} = \langle i\rvert\rho\lvert i\rangle

is the probability of obtaining basis outcome ii. Off-diagonal entries encode coherence relative to that basis. They are not probabilities and they change under a basis transformation.

Positivity constrains the coherences. Every 2×22\times2 principal minor obeys

∣ρij∣2≤ρiiρjj.\lvert\rho_{ij}\rvert^2 \le \rho_{ii}\rho_{jj}.

Thus a state cannot have arbitrarily large off-diagonal entries while its populations remain fixed.

If the basis vectors transform through a unitary matrix VV, then the matrix representing the same operator changes passively as

[ρ]′=V†[ρ]V.[\rho]' = V^\dagger[\rho]V.

This is different from physically applying a unitary to the state, which produces a new operator UρU†U\rho U^\dagger.

Every trace-one Hermitian qubit matrix can be written as

ρ=(acc∗1−a).\rho = \begin{pmatrix} a&c\\ c^*&1-a \end{pmatrix}.

It is positive if and only if

0≤a≤1,∣c∣2≤a(1−a).0\le a\le1, \qquad \lvert c\rvert^2 \le a(1-a).

Checking only the diagonal entries is insufficient. For example,

R=(12343412)R = \begin{pmatrix} \tfrac12&\tfrac34\\ \tfrac34&\tfrac12 \end{pmatrix}

is Hermitian and has trace one, but its eigenvalues are

54,−14.\frac54, \qquad -\frac14.

The negative eigenvalue makes RR unphysical.

A normalized vector defines the rank-one projector

ρψ=∣ψ⟩⟨ψ∣.\rho_\psi = \lvert\psi\rangle\langle\psi\rvert.

It satisfies

ρψ2=ρψ,Tr⁡ρψ=1.\rho_\psi^2=\rho_\psi, \qquad \operatorname{Tr}\rho_\psi=1.

The global phase cancels:

(eiθ∣ψ⟩)(eiθ∣ψ⟩)†=∣ψ⟩⟨ψ∣.\begin{aligned} &(e^{i\theta}\lvert\psi\rangle) (e^{i\theta}\lvert\psi\rangle)^\dagger \\ &\qquad= \lvert\psi\rangle\langle\psi\rvert. \end{aligned}

Thus the density-operator representation automatically respects the fact that pure states are rays.

In a basis where

∣ψ⟩=∑iψi∣i⟩,\lvert\psi\rangle = \sum_i \psi_i\lvert i\rangle,

the matrix entries are

(ρψ)ij=ψiψj∗.(\rho_\psi)_{ij} = \psi_i\psi_j^*.

The projector has one eigenvalue equal to one and all remaining eigenvalues equal to zero.

A density operator is mixed when it is not rank one. Equivalently, its spectral decomposition contains at least two nonzero eigenvalues:

ρ=∑rλr∣r⟩⟨r∣.\rho = \sum_r \lambda_r \lvert r\rangle\langle r\rvert.

This spectral decomposition is an orthogonal ensemble representation, but it is not generally the only ensemble representation. A given ρ\rho may also admit

ρ=∑kpk∣ψk⟩⟨ψk∣\rho = \sum_k p_k \lvert\psi_k\rangle\langle\psi_k\rvert

with nonorthogonal ∣ψk⟩\lvert\psi_k\rangle. No measurement performed on the system alone can distinguish two preparation procedures that yield the same density operator.

This nonuniqueness is why an ensemble is extra preparation data rather than an intrinsic decomposition of the state. Pure versus mixed is instead decided by basis-independent properties of ρ\rho: rank one, idempotency, and unit purity are equivalent tests for a pure state.

On a dd-dimensional Hilbert space,

ρ∗=Idd\rho_*=\frac{I_d}{d}

is the maximally mixed state. It assigns equal probability 1/d1/d to every vector in any orthonormal measurement basis. It is basis-independent:

Uρ∗U†=ρ∗U\rho_*U^\dagger=\rho_*

for every unitary UU.

“Maximally mixed” is always relative to a specified Hilbert space or support. The operator P/rP/r is maximally mixed on an rr-dimensional subspace with projector PP, but it is not maximally mixed on a larger ambient space.

If ρ1\rho_1 and ρ2\rho_2 are density operators and 0≤t≤10\le t\le1, then

ρ=tρ1+(1−t)ρ2\rho = t\rho_1+(1-t)\rho_2

is also a density operator. Positivity and trace one are preserved. The set of states is therefore convex.

Its extreme points are exactly the rank-one projectors. A mixed state can be expressed as a nontrivial convex combination of other states, while a pure state cannot. This geometric statement is independent of which particular ensemble decomposition is used.

For a dd-dimensional system, a Hermitian matrix has d2d^2 real parameters. The trace constraint removes one, so density operators form a convex body of real dimension

d2−1d^2-1

inside the affine space of trace-one Hermitian operators. Positivity carves out the physical region. For d=2d=2, that region is the Bloch ball summarized in the chapter’s Bloch-ball representation.

For an observable AA, the expectation value in state ρ\rho is

⟨A⟩ρ=Tr⁡(ρA).\langle A\rangle_\rho = \operatorname{Tr}(\rho A).

For a pure-state projector,

Tr⁡(ρψA)=Tr⁡(∣ψ⟩⟨ψ∣A)=⟨ψ∣A∣ψ⟩.\begin{aligned} \operatorname{Tr}(\rho_\psi A) &= \operatorname{Tr} \left( \lvert\psi\rangle\langle\psi\rvert A \right) \\ &= \langle\psi\rvert A\lvert\psi\rangle. \end{aligned}

For an ensemble,

ρ=∑kpk∣ψk⟩⟨ψk∣,\rho = \sum_k p_k \lvert\psi_k\rangle\langle\psi_k\rvert,

linearity gives

⟨A⟩ρ=∑kpk⟨ψk∣A∣ψk⟩.\langle A\rangle_\rho = \sum_k p_k \langle\psi_k\rvert A\lvert\psi_k\rangle.

The trace rule is basis-independent. In a basis that diagonalizes ρ\rho, it is the probability-weighted average of the diagonal matrix elements of AA; in any other basis, cyclicity of the trace gives the same answer.

For a projective measurement with projectors {Pa}\{P_a\},

p(a)=Tr⁡(ρPa).p(a) = \operatorname{Tr}(\rho P_a).

For a general POVM with effects {Ei}\{E_i\},

Ei≥0,∑iEi=I,E_i\ge0, \qquad \sum_i E_i=I,

the probability rule is

p(i)=Tr⁡(ρEi).p(i) = \operatorname{Tr}(\rho E_i).

These numbers are valid probabilities:

p(i)≥0,∑ip(i)=1.p(i)\ge0, \qquad \sum_i p(i)=1.

Positivity of ρ\rho and EiE_i ensures nonnegativity, while completeness of the POVM and Tr⁡ρ=1\operatorname{Tr}\rho=1 ensure normalization.

For a rank-one projector

Pϕ=∣ϕ⟩⟨ϕ∣,P_\phi = \lvert\phi\rangle\langle\phi\rvert,

the rule reduces to

Tr⁡(ρψPϕ)=∣⟨ϕ∣ψ⟩∣2.\begin{aligned} \operatorname{Tr}(\rho_\psi P_\phi) &= \lvert \langle\phi\vert\psi\rangle \rvert^2. \end{aligned}

Thus density operators extend the Born rule rather than replace it.

Consider the coherent pure state

∣+⟩=∣0⟩+∣1⟩2.\lvert+\rangle = \frac{ \lvert0\rangle+\lvert1\rangle }{\sqrt2}.

Its density matrix in the computational basis is

ρ+=12(1111).\rho_+ = \frac12 \begin{pmatrix} 1&1\\ 1&1 \end{pmatrix}.

By contrast, an equal incoherent mixture of ∣0⟩\lvert0\rangle and ∣1⟩\lvert1\rangle is

ρmix=12(1001).\rho_{\mathrm{mix}} = \frac12 \begin{pmatrix} 1&0\\ 0&1 \end{pmatrix}.

Both states give 00 and 11 with equal probability in a computational basis measurement. They differ in the xx basis:

Tr⁡(ρ+∣+⟩⟨+∣)=1,\operatorname{Tr}(\rho_+\lvert+\rangle\langle+\rvert) =1,

whereas

Tr⁡(ρmix∣+⟩⟨+∣)=12.\operatorname{Tr} \left( \rho_{\mathrm{mix}} \lvert+\rangle\langle+\rvert \right) = \frac12.

The off-diagonal entries in ρ+\rho_+ encode the relative-phase coherence that the second measurement reveals.

For a joint state ρAB\rho_{AB}, the state of subsystem AA is

ρA=Tr⁡BρAB.\rho_A = \operatorname{Tr}_B\rho_{AB}.

It is itself positive and trace one. Its defining operational property is

Tr⁡AB[ρAB(MA⊗IB)]=Tr⁡A(ρAMA)\begin{aligned} &\operatorname{Tr}_{AB} \left[ \rho_{AB}(M_A\otimes I_B) \right] \\ &\qquad= \operatorname{Tr}_A(\rho_A M_A) \end{aligned}

for every observable MAM_A. A pure joint state may have a mixed reduced state, as the Bell example showed. Such mixedness reflects entanglement, not merely an unknown classical preparation label.

The Partial Trace article develops the basis-independent definition, product-basis contraction, and computational checks for this construction.

If a closed system evolves by a unitary operator UU, then

ρ⟼ρ′=UρU†.\rho \longmapsto \rho' = U\rho U^\dagger.

This map preserves positivity, trace, rank, and eigenvalues. In particular, unitary evolution cannot turn a pure state into a mixed state or vice versa.

For a time-independent Hamiltonian, the density operator obeys the von Neumann equation

iℏdρdt=[H,ρ].i\hbar \frac{d\rho}{dt} = [H,\rho].

This is the density-operator counterpart of the Schrödinger equation. Nonunitary reduced dynamics can change the spectrum because correlations with an environment are being discarded. At the operator-theoretic level, Strongly Continuous Unitary Groups and Stone’s Theorem supply the precise generator statement.

For a proposed finite-dimensional density matrix:

  1. Check that it is square and acts on the intended Hilbert space.
  2. Check Hermiticity: ρ†=ρ\rho^\dagger=\rho.
  3. Check normalization: Tr⁡ρ=1\operatorname{Tr}\rho=1.
  4. Check positivity by eigenvalues, Cholesky factorization, or principal minors in low dimension.
  5. Treat tiny negative numerical eigenvalues relative to a justified tolerance; do not silently accept a substantial negative value.
  6. Confirm probabilities with representative projectors or POVM effects.
  7. Keep active physical evolution separate from passive basis changes.
  8. For a subsystem state, verify that the stated partial trace is over the correct factor.
  • Calling any Hermitian trace-one matrix a density operator without checking positivity.
  • Checking only that the diagonal entries are nonnegative.
  • Treating off-diagonal matrix entries as probabilities.
  • Confusing the operator ρ\rho with its basis-dependent matrix.
  • Assuming a mixed density operator uniquely identifies a preparation ensemble.
  • Interpreting every mixed state as ignorance about a pre-existing local pure state.
  • Confusing a coherent superposition with an incoherent mixture having the same basis populations.
  • Using Tr⁡(ρA)\operatorname{Tr}(\rho A) without ensuring that ρ\rho and AA act on the same Hilbert space.
  • Forgetting to normalize a conditional, subnormalized post-measurement operator before calling it a state.
  • Assuming unitary evolution can change the eigenvalues of ρ\rho.

The chapter overview turns the definitions and checks on this page into a reading route. Continue to Entangled States for separability, Partial Trace for subsystem states, and Quantum Operations for physical transformations. The No-Broadcasting Theorem shows how noncommutativity becomes an operational obstruction.

  • J. von Neumann, Mathematical Foundations of Quantum Mechanics, Princeton University Press (1955), Ch. IV.
  • M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press (2010), Secs. 2.4 and 8.2.
  • J. Watrous, The Theory of Quantum Information, Cambridge University Press (2018), Ch. 2.
  • J. Preskill, Lecture Notes for Physics 229: Quantum Information and Computation, Chapter 2, Sec. 2.3.
  • A. S. Holevo, Probabilistic and Statistical Aspects of Quantum Theory, 2nd ed., Edizioni della Normale (2011), Ch. 1.
  • L. E. Ballentine, Quantum Mechanics: A Modern Development, 2nd ed., World Scientific (2014), Ch. 3.
  1. Let ∣ψ⟩\lvert\psi\rangle be normalized. Verify that
ρψ=∣ψ⟩⟨ψ∣\rho_\psi = \lvert\psi\rangle\langle\psi\rvert

is positive, has trace one, and is idempotent.

Solution

For any ∣φ⟩\lvert\varphi\rangle,

⟨φ∣ρψ∣φ⟩=⟨φ∣ψ⟩⟨ψ∣φ⟩=∣⟨ψ∣φ⟩∣2≥0.\begin{aligned} \langle\varphi\rvert \rho_\psi \lvert\varphi\rangle &= \langle\varphi\vert\psi\rangle \langle\psi\vert\varphi\rangle \\ &= \lvert\langle\psi\vert\varphi\rangle\rvert^2 \ge0. \end{aligned}

In a basis containing ∣ψ⟩\lvert\psi\rangle, the projector has diagonal entries 1,0,…,01,0,\ldots,0, so its trace is one. Finally,

ρψ2=∣ψ⟩⟨ψ∣ψ⟩⟨ψ∣=ρψ.\rho_\psi^2 = \lvert\psi\rangle \langle\psi\vert\psi\rangle \langle\psi\rvert = \rho_\psi.
  1. Determine when
ρ=(acc∗1−a)\rho = \begin{pmatrix} a&c\\ c^*&1-a \end{pmatrix}

is a valid density matrix.

Solution

Hermiticity and trace one are already built in. Positivity requires the diagonal entries and determinant to be nonnegative:

0≤a≤1,det⁡ρ=a(1−a)−∣c∣2≥0.\begin{aligned} 0 &\le a\le1, \\ \det\rho &= a(1-a)-\lvert c\rvert^2 \ge0. \end{aligned}

Therefore the necessary and sufficient condition is

0≤a≤1,∣c∣2≤a(1−a).0\le a\le1, \qquad \lvert c\rvert^2\le a(1-a).
  1. Compare the equal mixture of ∣0⟩,∣1⟩\lvert0\rangle,\lvert1\rangle with the pure state ∣+⟩\lvert+\rangle. Compute the probability of the ++ outcome in an xx-basis measurement.
Solution

The two density matrices are

ρmix=I22,ρ+=∣+⟩⟨+∣.\rho_{\mathrm{mix}} = \frac{I_2}{2}, \qquad \rho_+ = \lvert+\rangle\langle+\rvert.

For P+=∣+⟩⟨+∣P_+=\lvert+\rangle\langle+\rvert,

Tr⁡(ρmixP+)=12,\operatorname{Tr}(\rho_{\mathrm{mix}}P_+) = \frac12,

whereas

Tr⁡(ρ+P+)=1.\operatorname{Tr}(\rho_+P_+) =1.

Equal computational-basis populations do not make a mixture equivalent to a coherent superposition.

  1. Show that the maximally mixed qubit has both ensemble decompositions
I22=12∣0⟩⟨0∣+12∣1⟩⟨1∣\frac{I_2}{2} = \frac12\lvert0\rangle\langle0\rvert + \frac12\lvert1\rangle\langle1\rvert

and

I22=12∣+⟩⟨+∣+12∣−⟩⟨−∣.\frac{I_2}{2} = \frac12\lvert+\rangle\langle+\rvert + \frac12\lvert-\rangle\langle-\rvert.
Solution

Completeness of either orthonormal basis gives

∣0⟩⟨0∣+∣1⟩⟨1∣=I2,\lvert0\rangle\langle0\rvert + \lvert1\rangle\langle1\rvert = I_2,

and

∣+⟩⟨+∣+∣−⟩⟨−∣=I2.\lvert+\rangle\langle+\rvert + \lvert-\rangle\langle-\rvert = I_2.

Dividing both identities by two gives the claimed decompositions. They are different preparation ensembles but the same density operator.

  1. For
ρ=(340014),\rho = \begin{pmatrix} \tfrac34&0\\ 0&\tfrac14 \end{pmatrix},

compute ⟨X⟩\langle X\rangle, ⟨Y⟩\langle Y\rangle, and ⟨Z⟩\langle Z\rangle.

Solution

Because ρ\rho is diagonal, its trace with either off-diagonal Pauli matrix vanishes:

⟨X⟩=0,⟨Y⟩=0.\langle X\rangle=0, \qquad \langle Y\rangle=0.

For Z=diag⁡(1,−1)Z=\operatorname{diag}(1,-1),

⟨Z⟩=Tr⁡(ρZ)=34−14=12.\langle Z\rangle = \operatorname{Tr}(\rho Z) = \frac34-\frac14 = \frac12.
  1. Prove that unitary evolution preserves the density-operator conditions for ρ′=UρU†\rho'=U\rho U^\dagger.
Solution

For any ∣φ⟩\lvert\varphi\rangle,

⟨φ∣ρ′∣φ⟩=⟨φ∣UρU†∣φ⟩=⟨χ∣ρ∣χ⟩≥0,\begin{aligned} \langle\varphi\rvert\rho'\lvert\varphi\rangle &= \langle\varphi\rvert U\rho U^\dagger \lvert\varphi\rangle \\ &= \langle\chi\rvert\rho\lvert\chi\rangle \ge0, \end{aligned}

where ∣χ⟩=U†∣φ⟩\lvert\chi\rangle=U^\dagger\lvert\varphi\rangle. Cyclicity of the trace gives

Tr⁡(UρU†)=Tr⁡(ρU†U)=1.\operatorname{Tr}(U\rho U^\dagger) = \operatorname{Tr}(\rho U^\dagger U) =1.

Hermiticity is also preserved:

(UρU†)†=UρU†.(U\rho U^\dagger)^\dagger = U\rho U^\dagger.
  1. Compute the reduced density operator of either qubit in ∣Φ+⟩\lvert\Phi^+\rangle.
Solution

The joint projector is

∣Φ+⟩⟨Φ+∣=12(∣00⟩⟨00∣+∣00⟩⟨11∣+∣11⟩⟨00∣+∣11⟩⟨11∣).\begin{aligned} \lvert\Phi^+\rangle\langle\Phi^+\rvert &= \frac12 \left( \lvert00\rangle\langle00\rvert + \lvert00\rangle\langle11\rvert \right. \\ &\qquad\left. + \lvert11\rangle\langle00\rvert + \lvert11\rangle\langle11\rvert \right). \end{aligned}

Tracing over the second qubit removes the cross terms and gives

ρA=12(∣0⟩⟨0∣+∣1⟩⟨1∣)=I22.\rho_A = \frac12 \left( \lvert0\rangle\langle0\rvert + \lvert1\rangle\langle1\rvert \right) = \frac{I_2}{2}.

The same calculation holds for ρB\rho_B.

  1. Explain why
R=(12343412)R = \begin{pmatrix} \tfrac12&\tfrac34\\ \tfrac34&\tfrac12 \end{pmatrix}

cannot represent a state by finding a vector assigned a negative expectation value.

Solution

The vector

∣−⟩=∣0⟩−∣1⟩2\lvert-\rangle = \frac{ \lvert0\rangle-\lvert1\rangle }{\sqrt2}

is an eigenvector of RR with eigenvalue −1/4-1/4. Therefore

⟨−∣R∣−⟩=−14<0.\langle-\rvert R\lvert-\rangle = -\frac14<0.

This violates positivity. If P−=∣−⟩⟨−∣P_-=\lvert-\rangle\langle-\rvert were used as a measurement outcome, the trace rule would assign the impossible probability

Tr⁡(RP−)=−14.\operatorname{Tr}(R P_-) = -\frac14.