Quantum Algorithms, Quantum Computing, Physics, Mathematics, Education.
multiplied (remember that here ρ is the density matrix, not the statevector). Expectation value of M is equal to the trace of the state times the operator Now, remember that an arbitrary density matrix for the state of a mixed or pure qubit is given as a linear combination of the Pauli matrices as