Physics, Quantum Physics, Quantum Mechanics, Quantum, Mathematics.
n-dimensional vectors can be generalized by converting the basis vectors |i⟩ into the eigenfunctions for whatever observable we want. For example, consider the way we expressed the identity matrix as a sum of outer products between a basis vector and itself. We could do the same in terms of