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