|q⟩ Bad Qubits

advanced · Physics · Quantum Information & von Neumann Entropy

Entropy of Pure and Mixed States

The von Neumann entropy draws a clean line between two kinds of quantum states. A state we know exactly — a single state vector — carries zero entropy. A state about which we are maximally ignorant carries the most entropy the system can hold. This lesson sharpens that contrast.

Pure states: zero entropy

A pure state is one that can be written as ρ=ψψ\rho = |\psi\rangle\langle\psi| for some unit vector ψ|\psi\rangle. Its density matrix is a rank-one projector, so its eigenvalues are a single 11 and the rest 00. The entropy is therefore

S(ψψ)=1log210=0.S(|\psi\rangle\langle\psi|) = -1\cdot\log_2 1 - 0 - \cdots = 0.

This holds for every pure state, including superpositions like 12(0+1)\tfrac{1}{\sqrt2}(|0\rangle + |1\rangle). Superposition is not the same as ignorance: a qubit in a definite superposition is a state we know completely, hence S=0S = 0. A handy algebraic signature of purity is

Tr(ρ2)=1    ρ is pure,Tr(ρ2)<1    ρ is mixed.\operatorname{Tr}(\rho^2) = 1 \iff \rho \text{ is pure}, \qquad \operatorname{Tr}(\rho^2) < 1 \iff \rho \text{ is mixed}.

The quantity Tr(ρ2)\operatorname{Tr}(\rho^2) is called the purity.

Mixed states: positive entropy

A mixed state is a probabilistic ensemble ρ=ipiψiψi\rho = \sum_i p_i |\psi_i\rangle\langle\psi_i| that cannot be reduced to a single vector. It has more than one nonzero eigenvalue and therefore S>0S > 0. Mixedness arises from genuine classical uncertainty about which state was prepared, or — more deeply — from entanglement with an inaccessible environment (the subject of the entanglement-entropy lesson).

The maximally mixed state

On a dd-dimensional system the maximally mixed state is

ρmax=1d,\rho_{\max} = \frac{\mathbb{1}}{d},

with all dd eigenvalues equal to 1/d1/d. Its entropy saturates the upper bound:

S ⁣(1d)=k=1d1dlog21d=log2d.S\!\left(\frac{\mathbb{1}}{d}\right) = -\sum_{k=1}^{d} \frac1d \log_2 \frac1d = \log_2 d.

For a single qubit (d=2d=2) this is 11 bit; for two qubits (d=4d=4) it is 22 bits; for nn qubits it is exactly nn bits. The maximally mixed state represents complete ignorance: every measurement in every basis yields uniformly random outcomes.

The spectrum of possibilities

Between these extremes lies everything else. For a single qubit, parameterize ρ\rho by its Bloch vector r\vec r with r1|\vec r| \le 1: the eigenvalues are 1±r2\tfrac{1\pm|\vec r|}{2}, so

S(ρ)=h ⁣(1+r2),S(\rho) = h\!\left(\frac{1+|\vec r|}{2}\right),

which decreases monotonically from 11 bit at the center (r=0|\vec r| = 0, maximally mixed) to 00 on the surface (r=1|\vec r| = 1, pure). Entropy thus measures how far the state sits from the surface of the Bloch ball.

Try it

Return the von Neumann entropy, in bits, of the maximally mixed state of two qubits, ρ=1/4\rho = \mathbb{1}/4. You should find it equals log24\log_2 4.

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.