Let A:HHA:H\to H be a on a complex , using the convention linear in its first argument. For any (ej)jJ(e_j)_{j\in J}, the trace is

Tr(A)=jJAej,ej.\operatorname{Tr}(A)=\sum_{j\in J}\langle A e_j,e_j\rangle.

The sum is absolutely convergent and independent of the basis. For an arbitrary index set, it is the limit over finite subsets; at most countably many summands are nonzero. In finite dimension every linear operator is trace-class, and this formula equals the .

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.
Properties

For trace-class 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.

The cyclic identity also holds when one factor is trace-class and the other is bounded; both products are then trace-class.

Quantum expectation values

For a ρ\rho and a bounded self-adjoint observable AA,

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

For an unbounded observable, additional domain and integrability conditions are needed.

Positive operators outside trace class

For a bounded positive operator AA, the same sum of nonnegative diagonal entries defines an extended trace in [0,][0,\infty], independent of the basis. Finiteness is equivalent to trace-class membership. An arbitrary bounded operator need not have a trace.

References
  1. Dan-Virgil Voiculescu, Math 209: Von Neumann Algebras, notes by Leonard Tomczak, UC Berkeley, Spring 2024. Lecture notes, §4, pp. 7–8, Proposition 4.1 and the singular-value expansion.