Skip to content

Density-Matrix Expectation Values

For a density operator ρ\rho and observable AA,

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

A physical density operator satisfies

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

For a measurement effect EaE_a,

p(a)=Tr⁡(ρEa).p(a) = \operatorname{Tr}(\rho E_a).

The expectation and probability rules are the same state–operator pairing. An observable labels outcomes numerically; an effect represents one event.

SettingTrace rule
Observable expectation⟨A⟩ρ=Tr⁡(ρA)\langle A\rangle_\rho=\operatorname{Tr}(\rho A)
Projective outcomep(a)=Tr⁡(ρPa)p(a)=\operatorname{Tr}(\rho P_a)
General measurement effectp(a)=Tr⁡(ρEa)p(a)=\operatorname{Tr}(\rho E_a)
Function or moment⟨f(A)⟩ρ=Tr⁡[ρf(A)]\langle f(A)\rangle_\rho=\operatorname{Tr}[\rho f(A)]
Variance(ΔρA)2=Tr⁡(ρA2)−[Tr⁡(ρA)]2(\Delta_\rho A)^2=\operatorname{Tr}(\rho A^2)-[\operatorname{Tr}(\rho A)]^2
Matrix components⟨A⟩ρ=∑i,jρijAji\langle A\rangle_\rho=\sum_{i,j}\rho_{ij}A_{ji}
Ensemble representation⟨A⟩ρ=∑kpk⟨ψk∣A∣ψk⟩\langle A\rangle_\rho=\sum_kp_k\langle\psi_k\rvert A\lvert\psi_k\rangle
Pure stateTr⁡(∣ψ⟩⟨ψ∣A)=⟨ψ∣A∣ψ⟩\operatorname{Tr}(\lvert\psi\rangle\langle\psi\rvert A)=\langle\psi\rvert A\lvert\psi\rangle
Local observableTr⁡AB[ρAB(A⊗IB)]=Tr⁡A(ρAA)\operatorname{Tr}_{AB}[\rho_{AB}(A\otimes I_B)]=\operatorname{Tr}_A(\rho_AA)
Conditional branch⟨A⟩a=Tr⁡(ρ~aA)/Tr⁡ρ~a\langle A\rangle_a=\operatorname{Tr}(\widetilde\rho_aA)/\operatorname{Tr}\widetilde\rho_a
Qubitρ=(I+r⋅σ)/2\rho=(I+\mathbf r\cdot\boldsymbol\sigma)/2, A=a0I+a⋅σA=a_0I+\mathbf a\cdot\boldsymbol\sigma gives ⟨A⟩=a0+r⋅a\langle A\rangle=a_0+\mathbf r\cdot\mathbf a

The density operator contains exactly the information needed to predict all measurements on the represented system. If two preparation procedures produce the same ρ\rho, then

Tr⁡(ρA)\operatorname{Tr}(\rho A)

is the same for every observable AA, and

Tr⁡(ρE)\operatorname{Tr}(\rho E)

is the same for every effect EE. Measurements on that system alone cannot distinguish those preparations.

The trace rule applies to:

  • pure states;
  • classical random mixtures of preparations;
  • reduced states of entangled systems;
  • thermal states;
  • states produced by noisy dynamics or unrecorded measurements.

It does not reveal which ensemble decomposition or environment produced the state. A density operator is an operational state, not a unique hidden list of pure states.

In a finite-dimensional Hilbert space,

Tr⁡X=∑n⟨n∣X∣n⟩\operatorname{Tr}X = \sum_n \langle n\rvert X\lvert n\rangle

in any orthonormal basis. The result is basis independent.

Useful identities include

Tr⁡(XY)=Tr⁡(YX),\operatorname{Tr}(XY) = \operatorname{Tr}(YX), Tr⁡(XYZ)=Tr⁡(ZXY)=Tr⁡(YZX),\operatorname{Tr}(XYZ) = \operatorname{Tr}(ZXY) = \operatorname{Tr}(YZX),

and

Tr⁡(∣u⟩⟨v∣A)=⟨v∣A∣u⟩.\operatorname{Tr} \left( \lvert u\rangle\langle v\rvert A \right) = \langle v\rvert A\lvert u\rangle.

Cyclicity permits cyclic rotation, not arbitrary reordering. In general,

Tr⁡(XYZ)≠Tr⁡(XZY).\operatorname{Tr}(XYZ) \neq \operatorname{Tr}(XZY).

In infinite dimensions, cyclicity requires the products to lie in classes for which the traces exist. Formal symbol rearrangement is not a substitute for that condition.

For

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

the rank-one trace identity gives

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 a rank-one projector

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

The density-operator formulation therefore extends rather than replaces the pure-state Born and expectation formulas.

In any orthonormal basis,

Tr⁡(ρA)=∑i(ρA)ii=∑i,jρijAji.\begin{aligned} \operatorname{Tr}(\rho A) &= \sum_i (\rho A)_{ii}\\ &= \sum_{i,j} \rho_{ij}A_{ji}. \end{aligned}

Off-diagonal entries of ρ\rho contribute whenever AA has matching off-diagonal entries. Reading probabilities from the diagonal of ρ\rho is valid only after specifying the measurement basis.

If the chosen basis diagonalizes a nondegenerate AA,

A=∑aa∣a⟩⟨a∣,A = \sum_a a\lvert a\rangle\langle a\rvert,

then

⟨A⟩ρ=∑aa ρaa,\langle A\rangle_\rho = \sum_a a\,\rho_{aa},

where

ρaa=⟨a∣ρ∣a⟩\rho_{aa} = \langle a\rvert\rho\lvert a\rangle

is the probability of outcome aa. In another basis, the same diagonal entries need not be the probabilities for measuring AA.

For degenerate eigenvalues, use the full spectral projector:

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

If

ρ=∑kpk∣ψk⟩⟨ψk∣,pk≥0,∑kpk=1,\rho = \sum_k p_k \lvert\psi_k\rangle \langle\psi_k\rvert, \qquad p_k\geq0, \qquad \sum_kp_k=1,

then

Tr⁡(ρA)=∑kpkTr⁡(∣ψk⟩⟨ψk∣A)=∑kpk⟨ψk∣A∣ψk⟩.\begin{aligned} \operatorname{Tr}(\rho A) &= \sum_kp_k \operatorname{Tr} \left( \lvert\psi_k\rangle \langle\psi_k\rvert A \right)\\ &= \sum_kp_k \langle\psi_k\rvert A\lvert\psi_k\rangle. \end{aligned}

This is the classical average of the component quantum expectations.

The decomposition of ρ\rho is generally not unique. Any two ensembles that produce the same operator give the same result for every AA. Do not assign physical uniqueness to one convenient decomposition unless the preparation record supplies that additional information.

For a POVM {Ea}\{E_a\},

Ea≥0,∑aEa=I,E_a\geq0, \qquad \sum_aE_a=I,

and

p(a)=Tr⁡(ρEa).p(a) = \operatorname{Tr}(\rho E_a).

Positivity gives

p(a)≥0,p(a)\geq0,

while completeness gives

∑ap(a)=Tr⁡ρ=1.\sum_ap(a) = \operatorname{Tr}\rho = 1.

For a self-adjoint observable AA and suitable function ff,

⟨f(A)⟩ρ=Tr⁡[ρf(A)].\langle f(A)\rangle_\rho = \operatorname{Tr} \left[ \rho f(A) \right].

In particular,

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

when the moment exists, and

(ΔρA)2=Tr⁡(ρA2)−[Tr⁡(ρA)]2.(\Delta_\rho A)^2 = \operatorname{Tr}(\rho A^2) - \left[ \operatorname{Tr}(\rho A) \right]^2.

An effect determines outcome probability but not the conditional state. Different measurement instruments can have the same effects and different post-measurement maps.

If ρ\rho is a valid state and AA is self-adjoint,

Tr⁡(ρA)∈R.\operatorname{Tr}(\rho A) \in \mathbb R.

If A≥0A\geq0, then

Tr⁡(ρA)≥0.\operatorname{Tr}(\rho A)\geq0.

For bounded self-adjoint AA with spectrum in [amin⁡,amax⁡][a_{\min},a_{\max}],

amin⁡≤Tr⁡(ρA)≤amax⁡.a_{\min} \leq \operatorname{Tr}(\rho A) \leq a_{\max}.

For an effect 0≤E≤I0\leq E\leq I,

0≤Tr⁡(ρE)≤1.0 \leq \operatorname{Tr}(\rho E) \leq 1.

These are powerful diagnostics. A complex expectation for a Hermitian matrix or probability outside [0,1][0,1] usually signals invalid input, inconsistent bases, incorrect conjugation, or numerical error.

Let ρAB\rho_{AB} describe a bipartite system and let AA act only on subsystem AA. The full-system observable is

A⊗IB.A\otimes I_B.

Its expectation is

⟨A⟩=Tr⁡AB[ρAB(A⊗IB)].\langle A\rangle = \operatorname{Tr}_{AB} \left[ \rho_{AB} (A\otimes I_B) \right].

Define

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

Then

Tr⁡AB[ρAB(A⊗IB)]=Tr⁡A(ρAA).\operatorname{Tr}_{AB} \left[ \rho_{AB} (A\otimes I_B) \right] = \operatorname{Tr}_A(\rho_AA).

The reduced state reproduces every local prediction on AA, whether ρAB\rho_{AB} is separable or entangled.

For a product observable A⊗BA\otimes B,

⟨A⊗B⟩=Tr⁡AB[ρAB(A⊗B)].\langle A\otimes B\rangle = \operatorname{Tr}_{AB} \left[ \rho_{AB} (A\otimes B) \right].

This generally cannot be computed from ρA\rho_A and ρB\rho_B alone because those marginals do not determine correlations.

Every qubit state can be written as

ρ=12(I+r⋅σ),∥r∥≤1.\rho = \frac12 \left( I+\mathbf r\cdot\boldsymbol{\sigma} \right), \qquad \lVert\mathbf r\rVert\leq1.

Every Hermitian qubit observable has the form

A=a0I+a⋅σ,A = a_0I + \mathbf a\cdot\boldsymbol{\sigma},

with real a0a_0 and a\mathbf a. Using

Tr⁡σi=0,Tr⁡(σiσj)=2δij,\operatorname{Tr}\sigma_i=0, \qquad \operatorname{Tr}(\sigma_i\sigma_j)=2\delta_{ij},

one obtains

⟨A⟩ρ=a0+r⋅a.\langle A\rangle_\rho = a_0+\mathbf r\cdot\mathbf a.

For a spin measurement along unit vector n\mathbf n, the projectors are

P±=12(I±n⋅σ),P_\pm = \frac12 \left( I\pm\mathbf n\cdot\boldsymbol{\sigma} \right),

so

p(±)=12(1±r⋅n).p(\pm) = \frac12 \left( 1\pm\mathbf r\cdot\mathbf n \right).

The Bloch vector encodes exactly the three Pauli expectation values:

ri=Tr⁡(ρσi).r_i = \operatorname{Tr}(\rho\sigma_i).

A positive operator ρ~\widetilde\rho with

0<Tr⁡ρ~<∞0< \operatorname{Tr}\widetilde\rho <\infty

can be normalized by

ρ=ρ~Tr⁡ρ~.\rho = \frac{\widetilde\rho} {\operatorname{Tr}\widetilde\rho}.

Then

⟨A⟩=Tr⁡(ρ~A)Tr⁡ρ~.\langle A\rangle = \frac{ \operatorname{Tr}(\widetilde\rho A) }{ \operatorname{Tr}\widetilde\rho }.

For a measurement branch

ρ~a=Ia(ρ),\widetilde\rho_a = \mathcal I_a(\rho),

its trace is the outcome probability:

p(a)=Tr⁡ρ~a.p(a) = \operatorname{Tr}\widetilde\rho_a.

If p(a)>0p(a)>0, the conditional expectation is

⟨A⟩a=Tr⁡(ρ~aA)p(a).\langle A\rangle_a = \frac{ \operatorname{Tr}(\widetilde\rho_aA) }{ p(a) }.

Do not normalize a branch before recording its trace if the branch probability is needed.

Under a unitary basis change,

ρ′=UρU†,A′=UAU†.\rho' = U\rho U^\dagger, \qquad A' = UAU^\dagger.

Then

Tr⁡(ρ′A′)=Tr⁡(UρAU†)=Tr⁡(ρA).\begin{aligned} \operatorname{Tr}(\rho'A') &= \operatorname{Tr} \left( U\rho A U^\dagger \right)\\ &= \operatorname{Tr}(\rho A). \end{aligned}

Transforming both objects is a passive representation change. Transforming only the state or only the observable generally describes a physical change, not merely new coordinates.

If ρ\rho is trace class and AA is bounded, then ρA\rho A is trace class and

Tr⁡(ρA)\operatorname{Tr}(\rho A)

is well defined.

For an unbounded self-adjoint AA, a standard absolute-integrability condition is

Tr⁡(ρ∣A∣)<∞.\operatorname{Tr} \left( \rho\lvert A\rvert \right) <\infty.

Equivalently, the first absolute moment of the Born spectral measure is finite. A finite variance requires the second moment:

Tr⁡(ρA2)<∞\operatorname{Tr}(\rho A^2)<\infty

in the positive spectral sense.

Writing matrix elements in an arbitrary basis and rearranging infinite sums can fail when absolute convergence is absent. Use the spectral measure or trace-class formulation.

  • ρ\rho is positive, trace class, and trace one, or the displayed normalization denominator is included.
  • AA, PaP_a, or EaE_a acts on the same Hilbert space as ρ\rho.
  • Observables are self-adjoint.
  • POVM effects are positive and complete for the modeled outcome set.
  • The trace pairing and required moments exist.
  • Local subsystem formulas use an explicitly specified tensor-product decomposition and tensor ordering.
  • Matrix component formulas use one common orthonormal basis for both operators.

The trace rule is exact within standard quantum mechanics. It applies to pure and mixed states and to reduced states of open subsystems.

The rule does not:

  • choose a unique ensemble decomposition of ρ\rho;
  • determine dynamics without a Hamiltonian, channel, or master equation;
  • determine post-measurement states from effects alone;
  • make nonpositive trace-one matrices physical;
  • guarantee finite moments for unbounded observables;
  • reconstruct correlations from reduced states alone.
  • Verify ρ=ρ†\rho=\rho^\dagger, ρ≥0\rho\geq0, and Tr⁡ρ=1\operatorname{Tr}\rho=1.
  • Verify dimensions and basis ordering of ρ\rho and AA match.
  • For Hermitian AA, the result must be real within numerical tolerance.
  • For positive AA, the result must be nonnegative.
  • For A=IA=I, the result must equal one.
  • For an effect, the result must lie in [0,1][0,1].
  • A complete POVM must give probabilities summing to one.
  • A bounded-observable expectation must lie in the spectral range.
  • A consistent unitary basis change must preserve the result.
  • For a pure state, compare against ⟨ψ∣A∣ψ⟩\langle\psi\rvert A\lvert\psi\rangle.
  • For a local observable, compare full and reduced-state calculations.

Let

ρ=12(1cc∗1),∣c∣≤1.\rho = \frac12 \begin{pmatrix} 1&c\\ c^*&1 \end{pmatrix}, \qquad \lvert c\rvert\leq1.

For

σx=(0110),\sigma_x = \begin{pmatrix} 0&1\\ 1&0 \end{pmatrix}, ⟨σx⟩=Tr⁡(ρσx)=Re⁡c.\langle\sigma_x\rangle = \operatorname{Tr}(\rho\sigma_x) = \operatorname{Re}c.

The diagonal entries alone do not determine this expectation. The off-diagonal coherence contributes.

For

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

the reduced state of either qubit is

ρA=I2.\rho_A = \frac{I}{2}.

Therefore

⟨σi⊗I⟩=Tr⁡(I2σi)=0\langle\sigma_i\otimes I\rangle = \operatorname{Tr} \left( \frac{I}{2}\sigma_i \right) = 0

for i=x,y,zi=x,y,z, even though the joint state has nontrivial correlations.

Trace Rule for Expectation Values owns the derivation, component formulas, ensemble interpretation, bounds, POVM probabilities, subsystem reduction, and infinite-dimensional qualification.

Density Operators owns state validity and preparation meaning. Reduced Density Matrices and Partial Trace own the subsystem construction.

  • Treating the diagonal of ρ\rho as a basis-independent probability table.
  • Ignoring off-diagonal terms in ∑i,jρijAji\sum_{i,j}\rho_{ij}A_{ji}.
  • Using matrix entries of ρ\rho and AA from different bases.
  • Forgetting positivity because Hermiticity and trace one happen to hold.
  • Reordering noncommuting factors inside a trace rather than cycling them.
  • Using an effect EaE_a as though it uniquely specified state update.
  • Assuming an ensemble decomposition of ρ\rho is unique.
  • Suppressing the identity in A⊗IBA\otimes I_B until subsystem order becomes ambiguous.
  • Trying to compute correlations from reduced states alone.
  • Normalizing a conditional branch before saving its probability.
  • Applying finite-dimensional trace manipulations to unbounded operators without checking existence.
  • Inferring a Hamiltonian or dynamics from the instantaneous state.
  • L. E. Ballentine, Quantum Mechanics: A Modern Development, 2nd ed., World Scientific, 2014, chs. 2 and 3.
  • J. J. Sakurai and J. Napolitano, Modern Quantum Mechanics, 3rd ed., Cambridge University Press, 2020, ch. 1.
  • M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press, 2010, chs. 2 and 8.
  • A. S. Holevo, Probabilistic and Statistical Aspects of Quantum Theory, 2nd ed., Edizioni della Normale, 2011, chs. 1 and 2.

Let

ρ=(3/41/41/41/4),A=(122−1).\rho = \begin{pmatrix} 3/4&1/4\\ 1/4&1/4 \end{pmatrix}, \qquad A = \begin{pmatrix} 1&2\\ 2&-1 \end{pmatrix}.

Compute ⟨A⟩ρ\langle A\rangle_\rho and identify the diagonal and off-diagonal contributions.

Solution

Using

Tr⁡(ρA)=∑i,jρijAji,\operatorname{Tr}(\rho A) = \sum_{i,j} \rho_{ij}A_{ji},

the diagonal contribution is

34(1)+14(−1)=12.\frac34(1) + \frac14(-1) = \frac12.

The off-diagonal contribution is

14(2)+14(2)=1.\frac14(2) + \frac14(2) = 1.

Therefore

⟨A⟩ρ=32.\langle A\rangle_\rho = \frac32.

The matrix AA has eigenvalues ±5\pm\sqrt5, so the answer lies inside its spectral range as required.

A qubit has Bloch vector r\mathbf r and is measured with

σn=n⋅σ,∥n∥=1.\sigma_{\mathbf n} = \mathbf n\cdot\boldsymbol{\sigma}, \qquad \lVert\mathbf n\rVert=1.

Find the expectation and the two outcome probabilities.

Solution

The qubit trace shortcut gives

⟨σn⟩=r⋅n.\langle\sigma_{\mathbf n}\rangle = \mathbf r\cdot\mathbf n.

The effects are

P±=12(I±σn),P_\pm = \frac12 \left( I\pm\sigma_{\mathbf n} \right),

so

p(±)=Tr⁡(ρP±)=12(1±r⋅n).p(\pm) = \operatorname{Tr}(\rho P_\pm) = \frac12 \left( 1\pm\mathbf r\cdot\mathbf n \right).

Their difference is the expectation and their sum is one.

An unnormalized measurement branch is

ρ~a=(0.30000.10).\widetilde\rho_a = \begin{pmatrix} 0.30&0\\ 0&0.10 \end{pmatrix}.

Find the outcome probability, normalized conditional state, and conditional expectation of σz\sigma_z.

Solution

The outcome probability is

p(a)=Tr⁡ρ~a=0.40.p(a) = \operatorname{Tr}\widetilde\rho_a = 0.40.

The conditional state is

ρa=ρ~a0.40=(3/4001/4).\rho_a = \frac{\widetilde\rho_a}{0.40} = \begin{pmatrix} 3/4&0\\ 0&1/4 \end{pmatrix}.

Therefore

⟨σz⟩a=Tr⁡(ρaσz)=34−14=12.\langle\sigma_z\rangle_a = \operatorname{Tr}(\rho_a\sigma_z) = \frac34-\frac14 = \frac12.

Equivalently,

⟨σz⟩a=Tr⁡(ρ~aσz)Tr⁡ρ~a.\langle\sigma_z\rangle_a = \frac{ \operatorname{Tr} (\widetilde\rho_a\sigma_z) }{ \operatorname{Tr}\widetilde\rho_a }.