Entropy and relative entropy of finite matrices #
This file develops the entropy calculus of finite quantum systems. A state of such a system is a
density matrix: a positive semidefinite matrix of trace one. The matrices have entries in any
RCLike field, the physical case being ℂ.
- The von Neumann entropy of
ρisS(ρ) = -Tr (ρ log ρ) = ∑ᵢ -λᵢ log λᵢ, the trace of the functional calculus ofReal.negMulLog; the convention0 log 0 = 0is built in.Matrix.vonNeumannEntropy. - The relative entropy (Umegaki) of
ρwith respect toσisD(ρ ‖ σ) = Tr (ρ (log ρ - log σ))when the kernel ofσis contained in the kernel ofρ, and⊤otherwise. It takes values inEReal, since for referencesσwhich are not normalized it may be negative.Matrix.relativeEntropy.
The basic inequality is Klein's inequality Tr ρ - Tr σ ≤ D(ρ ‖ σ) for positive
semidefinite ρ and σ, which gives the positivity of relative entropy between density matrices.
The trace formula Matrix.IsHermitian.trace_cfc_mul_cfc reduces it to the scalar inequality
a - b ≤ a log a - a log b between the eigenvalues a of ρ and b of σ, weighted by the
doubly stochastic overlaps ‖⟪uᵢ, vⱼ⟫‖² of their eigenvectors; the support condition removes the
pairs with b = 0 < a, for which the scalar inequality fails.
Klein's inequality against a product state gives the subadditivity of the von Neumann entropy:
for a density matrix ρ of a bipartite system, indexed by m × n, with reduced density matrices
ρ_A = Tr₂ ρ and ρ_B = Tr₁ ρ, S(ρ) ≤ S(ρ_A) + S(ρ_B). Since
log (σ_A ⊗ₖ σ_B) = log σ_A ⊗ₖ 1 + 1 ⊗ₖ log σ_B for positive definite σ_A and σ_B, the partial
traces turn Tr (ρ log (σ_A ⊗ₖ σ_B)) into Tr (ρ_A log σ_A) + Tr (ρ_B log σ_B). The reduced
density matrices may be singular, so we compare ρ with σ_A ⊗ₖ σ_B, where σ_A and σ_B
replace the zero eigenvalues of ρ_A and ρ_B by t > 0. This leaves Tr (ρ_A log σ_A) = -S(ρ_A)
unchanged, and the error in the traces vanishes as t → 0.
If 0 ≤ A ≤ B, that is A and B - A are positive semidefinite, then
Tr (A log A) ≤ Tr (A log B), or equivalently D(A ‖ B) ≤ 0; this trace inequality is a
consequence of the operator monotonicity of the logarithm. It bounds the entropy of a sum:
S(A + B) ≤ S(A) + S(B) for positive semidefinite A and B, and hence the upper mixture bound
S(∑ᵢ pᵢ ρᵢ) ≤ ∑ᵢ pᵢ S(ρᵢ) - ∑ᵢ pᵢ log pᵢ for density matrices ρᵢ and a probability vector p.
The matching lower bound is the concavity of the entropy: ∑ᵢ pᵢ S(ρᵢ) ≤ S(∑ᵢ pᵢ ρᵢ).
Together these mixture bounds control the entropy of a mixture by the entropies of its components
up to the Shannon entropy of the weights, as needed for the affinity of the mean entropy of quantum
spin systems.
Main results #
Matrix.PosSemidef.re_trace_sub_trace_le_relativeEntropy— Klein's inequality: for positive semidefiniteρandσ,Tr ρ - Tr σ ≤ D(ρ ‖ σ);Matrix.PosSemidef.relativeEntropy_nonneg— positivity of the relative entropy of two positive semidefinite matrices of equal trace, in particular of two density matrices;Matrix.PosSemidef.vonNeumannEntropy_nonnegandMatrix.PosSemidef.vonNeumannEntropy_le_log_card—0 ≤ S(ρ) ≤ log (card n)for a density matrixρ;Matrix.PosSemidef.vonNeumannEntropy_le_partialTraceRight_add_partialTraceLeft— subadditivity,S(ρ) ≤ S(Tr₂ ρ) + S(Tr₁ ρ)for a density matrixρof a bipartite system;Matrix.PosSemidef.re_trace_mul_cfc_log_leandMatrix.PosSemidef.relativeEntropy_nonpos— if0 ≤ A ≤ B, thenTr (A log A) ≤ Tr (A log B)andD(A ‖ B) ≤ 0;Matrix.concaveOn_vonNeumannEntropyandMatrix.sum_mul_vonNeumannEntropy_le— concavity,∑ᵢ pᵢ S(ρᵢ) ≤ S(∑ᵢ pᵢ ρᵢ);Matrix.vonNeumannEntropy_sum_smul_le— the upper mixture boundS(∑ᵢ pᵢ ρᵢ) ≤ ∑ᵢ (pᵢ S(ρᵢ) - pᵢ log pᵢ · Tr ρᵢ).
References #
- M. A. Nielsen, I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press (2000), Section 11.3 (von Neumann entropy, quantum relative entropy, Klein's inequality, subadditivity, concavity and the upper mixture bound).
- E. A. Carlen, Trace inequalities and quantum entropy: an introductory course, Contemporary Mathematics 529 (2010), Section 2 (Klein's inequality).
- O. Bratteli, D. W. Robinson, Operator Algebras and Quantum Statistical Mechanics 2, second edition, Springer (1997), Section 6.2 (the entropy of quantum spin systems).
Von Neumann entropy #
The von Neumann entropy S(ρ) = -Tr (ρ log ρ) of a matrix ρ: the real part of the trace
of the functional calculus of x ↦ -x log x, so that 0 log 0 = 0. It is the entropy of a
quantum state when ρ is a density matrix. The functional calculus of a non-Hermitian matrix is
zero, so then S(ρ) = 0.
Instances For
The defining equation of the von Neumann entropy, valid for every matrix ρ.
The von Neumann entropy of a Hermitian matrix is ∑ᵢ -λᵢ log λᵢ over its eigenvalues.
The von Neumann entropy of a Hermitian matrix is -Tr (ρ log ρ).
The von Neumann entropy of a positive semidefinite matrix of trace at most one is nonnegative.
Relative entropy #
The relative entropy (Umegaki) D(ρ ‖ σ) = Tr (ρ (log ρ - log σ)) of a matrix ρ with
respect to σ. It is finite exactly when the support condition holds, that is, when the kernel
of σ is contained in the kernel of ρ; otherwise it is ⊤. For density matrices it is the
quantum analogue of the Kullback–Leibler divergence, and it is nonnegative,
Matrix.PosSemidef.relativeEntropy_nonneg.
Instances For
The relative entropy with respect to a positive definite reference is always finite: the
support condition holds for every ρ.
Under the support condition, D(ρ ‖ σ) = -S(ρ) - Tr (ρ log σ).
The relative entropy with respect to a nonzero real multiple c • 1 of the identity is
D(ρ ‖ c • 1) = -S(ρ) - log c · Tr ρ.
Klein's inequality for the relative entropy. For positive semidefinite ρ and σ,
Tr ρ - Tr σ ≤ D(ρ ‖ σ).
Positivity of relative entropy. For positive semidefinite ρ and σ of equal trace, in
particular for two density matrices, 0 ≤ D(ρ ‖ σ).
The von Neumann entropy of a density matrix is at most log (card n), the entropy of the
maximally mixed state (card n)⁻¹ • 1.
Subadditivity #
Subadditivity of the von Neumann entropy. For a density matrix ρ of a bipartite system,
indexed by m × n, the entropy is at most the sum of the entropies of its reduced density
matrices: S(ρ) ≤ S(Tr₂ ρ) + S(Tr₁ ρ).
The relative entropy below the reference in the Loewner order #
A trace inequality for the logarithm. If A and B - A are positive semidefinite, that is
0 ≤ A ≤ B, then Tr (A log A) ≤ Tr (A log B). The matrix A may be
singular; the convention 0 log 0 = 0 applies.
Nonpositivity of the relative entropy under Loewner domination. If A and B - A are
positive semidefinite, that is 0 ≤ A ≤ B, then D(A ‖ B) ≤ 0. The support condition holds
automatically, so the relative entropy is finite.
Concavity and mixture bounds #
Scaling a Hermitian matrix by a real number c scales its entropy and adds -c log c times its
trace: S(c ρ) = c S(ρ) - c log c · Tr ρ.
The von Neumann entropy is subadditive on positive semidefinite summands:
S(A + B) ≤ S(A) + S(B).
The entropy of a finite sum of positive semidefinite matrices is at most the sum of their entropies.
Upper mixture bound for the entropy. For positive semidefinite ρᵢ and weights pᵢ ≥ 0,
S(∑ᵢ pᵢ ρᵢ) ≤ ∑ᵢ (pᵢ S(ρᵢ) - pᵢ log pᵢ · Tr ρᵢ). For density matrices and a probability vector
p the error term is the Shannon entropy -∑ᵢ pᵢ log pᵢ of p.
Concavity of the von Neumann entropy on the positive semidefinite matrices: for positive
semidefinite x and y and weights a, b ≥ 0 with a + b = 1,
a S(x) + b S(y) ≤ S(a x + b y).
Lower mixture bound for the entropy, the finite form of its concavity: for positive
semidefinite ρᵢ and a probability vector p, ∑ᵢ pᵢ S(ρᵢ) ≤ S(∑ᵢ pᵢ ρᵢ).