Let ρ\rho and σ\sigma be s on a finite-dimensional Hilbert space HH. The quantum relative entropy (also called Umegaki relative entropy) is defined by

D(ρ∥σ):={Tr⁡ ⁣(ρ(log⁡ρ−log⁡σ)),if supp⁡(ρ)⊆supp⁡(σ),+∞,otherwise.D(\rho\|\sigma) := \begin{cases} \operatorname{Tr}\!\big(\rho(\log\rho-\log\sigma)\big), & \text{if }\operatorname{supp}(\rho)\subseteq \operatorname{supp}(\sigma),\\[4pt] +\infty, & \text{otherwise.} \end{cases}

The support condition is needed because log⁡σ\log\sigma is not finite on the kernel of σ\sigma. The operators log⁡ρ\log\rho and log⁡σ\log\sigma are defined by .

Classical case

If ρ\rho and σ\sigma commute, they are simultaneously diagonalizable and the formula reduces to the of their eigenvalue distributions.

Properties
  • Nonnegativity (Klein inequality): D(ρ∥σ)≥0D(\rho\|\sigma)\ge 0, with equality iff ρ=σ\rho=\sigma.
  • Not symmetric: typically D(ρ∥σ)≠D(σ∥ρ)D(\rho\|\sigma)\ne D(\sigma\|\rho); it is not a metric.
  • Data processing inequality: for any completely positive trace-preserving map Φ\Phi,
    D(ρ∥σ) ≥ D(Φ(ρ)∥Φ(σ)).D(\rho\|\sigma)\ \ge\ D(\Phi(\rho)\|\Phi(\sigma)).
    In particular, taking Φ=Tr⁡B\Phi=\operatorname{Tr}_B (see ) gives
    D(ρAB∥σAB) ≥ D(ρA∥σA),ρA=Tr⁡B(ρAB), σA=Tr⁡B(σAB).D(\rho_{AB}\|\sigma_{AB})\ \ge\ D(\rho_A\|\sigma_A), \quad \rho_A=\operatorname{Tr}_B(\rho_{AB}),\ \sigma_A=\operatorname{Tr}_B(\sigma_{AB}).
Relation to von Neumann entropy

If d=dim⁡Hd=\dim H and τ=I/d\tau=I/d is the maximally mixed state, then

D(ρ∥τ)=log⁡d−S(ρ),D(\rho\|\tau)=\log d - S(\rho),

where S(ρ)S(\rho) is the .