Trace of an Operator

A basis-independent scalar associated to a linear operator, equal to the sum of diagonal entries or eigenvalues in finite dimension.
Trace of an Operator

Let HH be a finite-dimensional complex Hilbert space and let A:HHA:H\to H be a linear operator. The trace of AA, denoted Tr(A)\operatorname{Tr}(A), is defined by choosing any orthonormal basis (e1,,en)(e_1,\dots,e_n) and setting

Tr(A):=k=1nek,Aek. \operatorname{Tr}(A) := \sum_{k=1}^n \langle e_k, A e_k\rangle.

This value is independent of the chosen orthonormal basis.

This notion agrees with the usual matrix trace (see ) after identifying AA with its matrix in an orthonormal basis.

Equivalent descriptions (finite dimension)

  • If AA is represented by a matrix (Aij)(A_{ij}) in any basis, then Tr(A)=iAii\operatorname{Tr}(A)=\sum_i A_{ii}.
  • Tr(A)\operatorname{Tr}(A) equals the sum of eigenvalues of AA, counted with algebraic multiplicity.

Key properties

For operators A,BA,B on HH and scalars α,β\alpha,\beta:

  • Linearity: Tr(αA+βB)=αTr(A)+βTr(B)\operatorname{Tr}(\alpha A+\beta B)=\alpha\operatorname{Tr}(A)+\beta\operatorname{Tr}(B).
  • Cyclic property: Tr(AB)=Tr(BA)\operatorname{Tr}(AB)=\operatorname{Tr}(BA).
  • Unitary invariance: if UU is unitary, then Tr(UAU)=Tr(A)\operatorname{Tr}(U^\ast A U)=\operatorname{Tr}(A).
  • Positivity: if AA is positive semidefinite, then Tr(A)0\operatorname{Tr}(A)\ge 0.

Trace and quantum expectation values

If ρ\rho is a and AA is an observable (self-adjoint operator), the expected value of AA in state ρ\rho is

Eρ[A]=Tr(ρA). \mathbb{E}_\rho[A] = \operatorname{Tr}(\rho A).

In particular, density operators are normalized by the condition Tr(ρ)=1\operatorname{Tr}(\rho)=1.

Note on infinite dimension

On an infinite-dimensional Hilbert space, not every bounded operator has a trace. One typically restricts to trace-class operators to extend Tr\operatorname{Tr} with similar properties.