TeX source:
\text{tr}(\mathbf{A}) = \sum_i\langle i | \mathbf{A}| i\rangle