The von Neumann entropy of a positive semidefinite matrix with matrix trace 1, for
, is
Such a matrix is a density matrix. If are its eigenvalues,
then
where
is defined to be 0. Thus von Neumann entropy is the Shannon
entropy of the distribution of the eigenvalues.
It is zero when
has matrix rank 1 and is at most
, with equality for
. Base 2 gives entropy
in bits, while base
gives entropy in nats.
Let
be Hermitian matrices of the same dimension and
let
sum to 1. Define
,
, and the density
matrix
using the matrix exponential. With
, Kao (2026) proved the
inequality
even when the Hermitian matrices
do not commute.