In mathematics, the trace of a square matrix A is the sum of its diagonal elements. The concept is then generalised to trace of a Hilbert space operator.