In quantum mechanics, and especially quantum information theory, the purity of a normalized quantum state is a scalar defined as γ γ ≡ ≡ tr ⁡ ⁡ ( ρ ρ 2 ) where ρ ρ is the density matrix of the state and tr is the trace operation. The purity defines a measure on quantum states, giving information on how much a state is mixed.