The von Neumann entropy of a quantum state ρ is given by the formula,
and if λi are the eigenvalues of ρ then the Von Neumann entropy can be reexpressed as:
In quantum information the logarithms are usually taken to be base 2, giving a maximum entropy of 1 for a qubit.

