Density operators
Density operators (density matrices) generalize state vectors to describe pure and mixed quantum states, allow calculation of expectation values, reductions (partial trace), and quantify mixedness (purity, von Neumann entropy).
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Density operators let an engineer describe realistic quantum systems that are not perfectly isolated. Use cases: modelling noise and decoherence in qubits, describing subsystems of entangled multi-qubit hardware, computing outputs of quantum channels, and analysing quantum communication protocols and tomography results.
Key ideas
Density operator / density matrix (definition): For an ensemble { (p_i, |ψ_i>) } the density operator is the linear operator ρ = sum_i p_i |ψ_i><ψ_i|. This operator encodes all predictions for measurements on the system.
Assumptions: finite-dimensional Hilbert space (common in qubit systems). In matrix form relative to a basis, ρ is the density matrix.
Properties of a density operator (must hold for every ρ representing a physical state):
- Hermitian: ρ† = ρ. (Hermiticity ensures real expectation values.)
- Positive semidefinite: for every vector |φ>, <φ|ρ|φ> ≥ 0. Equivalently, all eigenvalues λ_j ≥ 0.
- Unit trace: Tr(ρ) = 1. (Normalization of total probability.)
Pure vs mixed states:
- Pure state: ensemble with one state (p=1) so ρ = |ψ><ψ|. Equivalent algebraic condition: ρ^2 = ρ (idempotent) and Tr(ρ^2) = 1.
- Mixed state: cannot be written as a single projector |ψ><ψ|. For mixed states 0 < Tr(ρ^2) < 1; Tr(ρ^2) = 1 only for pure states.
Note: Decompositions into ensembles are not unique: the same ρ can have many different ensembles.
Expectation values: For an observable (Hermitian operator) A, the expectation value in state ρ is ⟨A⟩ = Tr(ρ A). This generalizes ⟨ψ|A|ψ⟩ for pure states. More generally, for a POVM {E_i} with E_i ≥ 0 and ∑_i E_i = I, outcome probabilities are p_i = Tr(ρ E_i).
Spectral decomposition: Any density operator can be diagonalized as ρ = sum_j λ_j |e_j><e_j| where λ_j ≥ 0 and sum_j λ_j = 1. The {λ_j} are eigenvalues (probabilities in this basis), and {|e_j>} are orthonormal eigenvectors. Evolution: closed-system unitary ρ' = U ρ U†; general noisy evolution (quantum channel) ρ' = sum_k E_k ρ E_k† with sum_k E_k† E_k = I (a CPTP map).
Convex set: The set of density operators is convex: any convex combination p ρ1 + (1-p) ρ2 (0 ≤ p ≤ 1) is a valid density operator. Extreme points of this convex set are the pure states.
Purity and entropy:
- Purity P(ρ) = Tr(ρ^2). Range: 1/d ≤ P ≤ 1 for a d-dimensional system; P = 1 for pure states.
- von Neumann entropy S(ρ) = - Tr(ρ log ρ). For eigenvalues {λ_j}, S = - sum_j λ_j log λ_j (information-theory units: nats if ln, bits if log2). S = 0 for pure states; S is maximal (log d) for the maximally mixed state I/d.
Partial trace and reduced density operator: For a composite system AB with density ρ_AB on H_A ⊗ H_B, the reduced density operator for subsystem A is ρ_A = Tr_B(ρ_AB), where Tr_B means trace over B's degrees of freedom. This gives all expectation values of operators acting only on A: Tr(ρ_A A) = Tr(ρ_AB (A ⊗ I_B)).
Derivation universities ask for: write ρ_AB in a product basis, perform the sum over B basis indices to remove B, show resulting operator acts on A only; give the formula using components. In components: [ρ_A]_{ij} = ∑k [ρ_AB]{ik, jk}.
Bloch sphere (single qubit): any single-qubit density matrix can be written as ρ = (I + r_x σ_x + r_y σ_y + r_z σ_z) / 2 = (I + r · σ) / 2, where r = (r_x, r_y, r_z) is the Bloch vector, with |r| ≤ 1. Pure states correspond to |r| = 1; the maximally mixed state is r = 0.
Diagram to draw for exam: draw a sphere (label it "Bloch sphere"), mark axes x, y, z with +z at the top as |0>, -z as |1>. Draw a vector r from center to surface (for pure) or inside (for mixed). Label angles θ and φ where for a vector of length |r| one has r = |r| (sin θ cos φ, sin θ sin φ, cos θ); for a pure state (|r|=1), the state can be written as |ψ> = cos(θ/2)|0> + e^{iφ} sin(θ/2)|1|.
Formulas
ρ = sum_i p_i |ψ_i><ψ_i| — ρ: density operator (dimensionless), p_i: probabilities (dimensionless), |ψ_i>: unit vectors in Hilbert space. Applies to ensembles.
ρ† = ρ — Hermitian condition; no units; applies to physical density operators.
Tr(ρ) = 1 — unit trace (dimensionless); normalization condition.
<A> = Tr(ρ A) — expectation value of observable A (same units as A); A Hermitian.
ρ = sum_j λ_j |e_j><e_j| — spectral decomposition; λ_j ≥ 0, sum_j λ_j = 1.
P(ρ) = Tr(ρ^2) — purity (dimensionless); 1 for pure states; < 1 for any mixed state (with minimum 1/d in d dimensions).
S(ρ) = - Tr(ρ log ρ) — von Neumann entropy (units: nats if natural log, bits if log base 2); measures mixedness.
ρ_A = Tr_B(ρ_AB) — partial trace (dimension: same as subsystem A). Gives reduced state for subsystem A.
ρ_qubit = (I + r · σ)/2 — Bloch representation; r ∈ R^3, |r| ≤ 1; σ = (σ_x, σ_y, σ_z) are Pauli matrices, with σ_x = [[0,1],[1,0]], σ_y = [[0, -i],[i, 0]], σ_z = [[1,0],[0,-1]].
Tr(ρ σ_k) = r_k for k = x,y,z — components of Bloch vector (dimensionless). For a qubit, P(ρ) = (1 + |r|^2)/2.
Worked examples
Example 1 (pure qubit → density matrix and Bloch vector). Problem: Let |ψ> = √(3)/2 |0> + 1/2 |1> (both coefficients real). Find ρ, the Bloch vector r, and purity. Solution steps:
- Write coefficients: α = √3/2 ≈ 0.8660254, β = 1/2 = 0.5.
- Density matrix ρ = |ψ><ψ| = [[|α|^2, α β*],[α* β, |β|^2]] = [[3/4, (√3)/4],[ (√3)/4, 1/4 ]].
- Compute Bloch components using r_x = 2 Re(α β*), r_y = 2 Im(α β*) = 0, r_z = |α|^2 - |β|^2:
- α β* = 0.8660254 × 0.5 = 0.4330127
- r_x = 2 × 0.4330127 = 0.8660254
- r_y = 0
- r_z = 0.75 − 0.25 = 0.5 So r = (0.8660254, 0, 0.5) and |r| = sqrt(0.8660^2 + 0.5^2) = 1.0 (within rounding), confirming a pure state.
- Purity P = Tr(ρ^2) = 1 (for any pure state). Final numeric checks: matrix entries sum on diagonal = 1.
Answer: ρ = [[0.75, 0.4330127],[0.4330127, 0.25]], r = (0.8660254, 0, 0.5), purity = 1.
Example 2 (partial trace — Bell state reduced density). Problem: For |Φ+> = (|00> + |11>) / √2, compute ρ_AB and the reduced state ρ_A. Solution steps:
- ρ_AB = |Φ+><Φ+| = (1/2)(|00><00| + |00><11| + |11><00| + |11><11|).
- Choose computational basis for B: {|0>, |1>} and perform partial trace Tr_B. Only terms with B indices equal contribute.
- Tr_B(|00><00|) = |0><0|_A, Tr_B(|11><11|) = |1><1|_A, cross terms Tr_B(|00><11|) = 0 and Tr_B(|11><00|) = 0 because <0|1> = 0.
- So ρ_A = (1/2)(|0><0| + |1><1|) = I/2, the maximally mixed state.
Answer: ρ_A = I/2, showing each subsystem of a maximally entangled pure state is maximally mixed.
Example 3 (expectation from mixed state). Problem: ρ = p |0><0| + (1 − p) |1><1|. Find ⟨σ_z⟩. Solution: ⟨σ_z⟩ = Tr(ρ σ_z) = p·(+1) + (1 − p)·(−1) = 2p − 1. For p = 0.7, ⟨σ_z⟩ = 0.4.
Answer: ⟨σ_z⟩ = 2p − 1; numeric example gives 0.4.
Common mistakes
- Confusing state vector phases with density matrix entries: global phase disappears in ρ.
- Applying partial trace incorrectly (forgetting to sum over the correct subsystem indices or using wrong basis).
- For Bloch vector, forgetting the condition |r| ≤ 1 or mixing up sign conventions for σ_y component.
- Using Tr(ρ^2) = 0 to mean maximally mixed — minimum purity is 1/d, not 0 (unless infinite dimension).
For your exam
Question types you will see: definitions (density operator, reduced state, purity, entropy), derivations (show ρ properties, derive partial trace formula), calculations (find ρ from given ensemble; compute reduced density of an entangled state), diagram (draw Bloch sphere and mark r for a given ρ), short proofs (prove ρ pure iff ρ^2 = ρ), numericals (expectation of observables from ρ).
What full-marks answers include:
- State clear definitions with the three properties of ρ (Hermitian, positive semidefinite, unit trace).
- For derivations, write steps: start from ensemble or composite pure state, substitute and perform trace or algebra step-by-step.
- For Bloch-sphere questions, draw sphere, label axes and vector; relate r components to Tr(ρ σ_k).
- For numericals, show matrix entries, eigenvalues if asked, and check Tr(ρ)=1 and positivity.
Quick check
- Write the three defining properties of a density operator.
- For a qubit with ρ = I/2, what is the Bloch vector and von Neumann entropy (bits)?
- If ρ = |ψ><ψ|, show Tr(ρ^2) = 1 briefly.
Answers: 1) Hermitian, positive semidefinite, unit trace. 2) Bloch vector r = (0,0,0); entropy = 1 bit. 3) ρ^2 = |ψ><ψ||ψ><ψ| = |ψ><ψ| = ρ, so Tr(ρ^2) = Tr(ρ) = 1.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?