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