Write each state with the value q of the physical quantity as a vector in some basis ψ ψ n q , a list of numbers at each value of n for the vector which has value q for the physical quantity. Now form the outer product of the vectors by multiplying all the vector components and add them with coefficients to make the matrix