Quantum Algorithms, Quantum Computing, Physics, Mathematics, Education.
matrix of the state. We also know that the expectation values can be calculated through repeated measurement. This can be done by projecting the state into each basis, running the circuit a large amount of times, and using the resulting counts to get the expectation value. This last step is done by