Quantum Algorithms, Quantum Computing, Physics, Mathematics, Education.
Gambetta, and Graeme Smith, and first implemented it for a single qubit. To start, we need to remember some facts about measurement operators. The important here is that the expectation value of some measurement operator with respect to some state ρ is equal to the trace of these two matrices