Skip to content

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.

Density operators for different preparations

Section titled “Density operators for different preparations”

A normalized vector ∣ψ⟩\lvert\psi\rangle describes a pure state. Being closed does not itself imply purity; a closed system can also have a mixed preparation. 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.

Here the probabilities are nonnegative. To see why the projectors are averaged, consider a normalized detector state ∣ϕ⟩|\phi\rangle. The law of total probability gives

p(ϕ)=∑kpk∣⟨ϕ∣ψk⟩∣2=⟨ϕ∣∑kpk∣ψk⟩⟨ψk∣∣ϕ⟩=⟨ϕ∣ρ∣ϕ⟩.p(\phi)=\sum_k p_k|\langle\phi|\psi_k\rangle|^2 =\left\langle\phi\left|\sum_k p_k|\psi_k\rangle\langle\psi_k|\right|\phi\right\rangle =\langle\phi|\rho|\phi\rangle.

One operator therefore supplies the probabilities for every detector direction, without retaining the preparation label. Averaging the kets themselves would introduce interference between separate runs and would even depend on their arbitrary global phases. Preparation ensembles develops this distinction and the role of an accessible record. Unless all preparations with nonzero weight 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}).

Here β=1/(kBT)\beta=1/(k_BT) and the partition function must be finite and nonzero. This is automatic in finite dimensions at finite β\beta, but not for every infinite-dimensional model. Density operators also describe open systems. A mixed state can always be represented mathematically as part of a larger pure state, but that purification need not identify the actual physical preparation.

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 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. Because trace-class operators are compact, every nonzero spectral value is an eigenvalue; zero can be a spectral accumulation point. This differs from an observable such as position, whose spectrum is continuous. There is no normalized state proportional to the identity on an infinite-dimensional space.

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 columns of the unitary matrix VV are the new orthonormal basis kets expressed in the old basis, 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θ∣ψ⟩)†=∣ψ⟩⟨ψ∣.(e^{i\theta}\lvert\psi\rangle) (e^{i\theta}\lvert\psi\rangle)^\dagger = \lvert\psi\rangle\langle\psi\rvert.

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.

For a bounded observable AA (in particular, any finite-dimensional observable), 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.

For an unbounded self-adjoint observable, a finite expectation requires a finite absolute first moment of its spectral probability measure. The notation Tr⁡(ρA)\operatorname{Tr}(\rho A) then needs the corresponding moment interpretation; an ordinary operator-product trace can require stronger assumptions. See trace-rule expectations.

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.

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)\operatorname{Tr}_{AB} \left[ \rho_{AB}(M_A\otimes I_B) \right] = \operatorname{Tr}_A(\rho_A M_A)

for every bounded 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 finite-dimensional differentiable unitary evolution generated by a Hermitian Hamiltonian H(t)H(t), 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. An unbounded Hamiltonian requires additional regularity for this differential equation; the unitary formula remains the more general starting point. 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.

Checking only the diagonal. Coherence can be too large even when every population lies in [0,1][0,1]. Check Hermiticity, trace, and positive semidefiniteness; the invalid qubit matrix above passes the first two tests.

Using an unsuitable positivity test. Eigenvalues or a factorization designed for semidefinite matrices work. An ordinary Cholesky routine requiring strict positivity can reject a valid rank-deficient pure state. Diagnose numerical errors at the matrix’s scale before clipping eigenvalues.

Inferring a unique preparation from a matrix. Different ensembles can give the same density operator. Access to a classical preparation record or to another correlated system is additional information.

Confusing a basis change with loss of coherence. A pure state can be diagonal in its own eigenbasis without becoming mixed. Purity and the density-operator eigenvalues do not depend on the basis.

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.

  • L. E. Ballentine, Quantum Mechanics: A Modern Development, 2nd ed., World Scientific (2014), Ch. 3.
  • A. S. Holevo, Probabilistic and Statistical Aspects of Quantum Theory, 2nd ed., Edizioni della Normale (2011), Ch. 1.
  • 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.
  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

For real aa and complex cc, 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∣).\lvert\Phi^+\rangle\langle\Phi^+\rvert = \frac12 \left( \lvert00\rangle\langle00\rvert + \lvert00\rangle\langle11\rvert + \lvert11\rangle\langle00\rvert + \lvert11\rangle\langle11\rvert \right).

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.