Skip to content
Tutorials Center
My learning

Topics

Lesson 33 of 39 · Entanglement, Measurement and Decoherence

Density Matrices and Mixed States

Describe quantum systems that are not in a pure state with the density matrix: purity, Bloch vector, von Neumann entropy and the partial trace.

So far a quantum system has had a state vector |ψ⟩. Real systems are often not that simple. A source may emit electrons whose spin is prepared at random. A qubit in a quantum computer is always slightly coupled to its surroundings. And, most important, when a system is entangled with another one, the system by itself has no state vector at all, even though the pair does. All three cases need a more general description: the density matrix (or density operator) ρ. It contains the same information as a state vector when the state is pure, and it also handles ignorance and entanglement.

Pure and mixed states

A pure state is described by a vector |ψ⟩ and has density matrix ρ = |ψ⟩⟨ψ|. A mixed state is a statistical ensemble: with probability p_i the system is in the pure state |ψ_i⟩. Then

Text
ρ = Σ_i p_i |ψ_i⟩⟨ψ_i|,      p_i ≥ 0,   Σ p_i = 1

The expectation value of an observable A is

Text
⟨A⟩ = Tr(ρ A)

For a pure state this reduces to ⟨ψ|A|ψ⟩. A density matrix has three properties: it is Hermitian, positive semi-definite (no negative eigenvalues), and has trace 1. Conversely, any operator with those properties is a legitimate density matrix.

Do not confuse the two kinds of "mixture":

  • A superposition (|↑⟩ + |↓⟩)/√2 is a pure state with definite phase relations (a spin pointing along +x). It can show interference.
  • A mixture ½|↑⟩⟨↑| + ½|↓⟩⟨↓| is an ensemble where each member is either up or down. It has no phase coherence and shows no interference.

The off-diagonal elements of ρ in a basis, called coherences, tell the two apart. In the ↑, ↓ basis, the superposition has ρ = ½ [[1, 1], [1, 1]] and the mixture has ρ = ½ [[1, 0], [0, 1]].

Mixtures do not have a unique recipe

Different ensembles can have the same density matrix. The equal mixtures ½|↑⟩⟨↑| + ½|↓⟩⟨↓| and ½|→⟩⟨→| + ½|←⟩⟨←| are both ρ = I/2, the maximally mixed state. No measurement can tell them apart, so the density matrix, not the ensemble, is the physical object.

Purity and entropy

Two numbers measure how mixed a state is:

  • Purity Tr(ρ²). It equals 1 for a pure state and 1/d for the maximally mixed state of a d-level system (for a qubit it ranges from 1/2 to 1).
  • Von Neumann entropy S(ρ) = -Tr(ρ ln ρ) = -Σ λ_i ln λ_i, with λ_i the eigenvalues of ρ. It is 0 for a pure state and ln d (or log₂ d bits) at most.

The Bloch sphere

Every qubit density matrix can be written

Text
ρ = ½ (I + r·σ)      with  r = (⟨σ_x⟩, ⟨σ_y⟩, ⟨σ_z⟩),   |r| ≤ 1

The Bloch vector r lies on the surface of a unit sphere for pure states and inside the sphere for mixed states; the center is the maximally mixed state. Purity is (1 + |r|²)/2.

Python Bloch vector, purity and entropy of qubit states

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Subsystems and the partial trace

Suppose two systems A and B are in a joint pure state |Ψ⟩_AB. Operators acting only on A, such as A ⊗ I, have expectation values ⟨Ψ|A ⊗ I|Ψ⟩ = Tr_A(ρ_A A) with the reduced density matrix

Text
ρ_A = Tr_B |Ψ⟩⟨Ψ|

The partial trace Tr_B sums over a basis of B. It discards everything that could be learned by measuring B. Take the Bell state

Text
|Φ⁺⟩ = (|00⟩ + |11⟩)/√2

The pair is in a pure state (entropy 0), but the reduced state of qubit A is ρ_A = I/2: completely mixed, with entropy of one bit. The whole is perfectly known, yet the parts are maximally uncertain. This is the hallmark of entanglement, with no classical analog (in classical physics knowing the whole implies knowing the parts). For a pure joint state, the entropy of ρ_A (equal to that of ρ_B) measures the entanglement between the two parts. For a general mixed joint state this simple measure no longer applies.

A pure bipartite state can always be written by the Schmidt decomposition

Text
|Ψ⟩ = Σ_i √λ_i |a_i⟩|b_i⟩

and the λ_i are the eigenvalues of both ρ_A and ρ_B. The state is a product state exactly when only one λ_i is non-zero.

Python Partial trace and entanglement entropy of two-qubit states

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The last row is worth thinking about. A classical coin pair with perfectly correlated faces has marginals that are random too. What differs is that the joint state of the Bell pair is pure and the correlations survive in every measurement basis, as the next lesson shows with Bell's inequality.

Time evolution

A closed system's density matrix obeys the von Neumann equation

Text
iħ dρ/dt = [H, ρ]

which follows from the Schrödinger equation. Unitary evolution never changes the purity or entropy. Entropy can only increase if the system is open, interacting with an environment that is then traced out. That is the topic of the final lesson of this chapter, Decoherence.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which condition is true for every density matrix?

    ρ² = ρ holds only for pure states, and ρ is only diagonal in its eigenbasis. Unit trace, Hermiticity and positivity define every density matrix.
  2. 2. The purity Tr(ρ²) of the maximally mixed state of a qubit is:

    ρ = I/2, so ρ² = I/4 and its trace is 1/2.
  3. 3. For the Bell state (|00⟩ + |11⟩)/√2, the entropy of qubit A alone is:

    ρ_A = I/2, which has two equal eigenvalues 1/2, giving S = 1 bit, even though the joint state is pure.
  4. 4. Why can't an experiment distinguish the mixture 50% |↑⟩, 50% |↓⟩ from 50% |→⟩, 50% |←⟩?

    All expectation values are Tr(ρA), so states with equal ρ are physically identical, whatever the preparation recipe.

Summary

  • The density matrix ρ = Σ p_i |ψ_i⟩⟨ψ_i| describes pure and mixed states; ⟨A⟩ = Tr(ρA).
  • Purity Tr ρ² and von Neumann entropy -Tr ρ ln ρ measure mixedness; the Bloch vector r has |r| = 1 for pure qubit states.
  • Superposition (coherence in the off-diagonals) differs from a statistical mixture.
  • The partial trace gives the state of a subsystem; for an entangled pure pair each part is mixed, with the entropy of entanglement.
  • A closed system evolves by iħ dρ/dt = [H, ρ], which preserves entropy.

Next: Entanglement and Bell's Inequality