Quantum Algorithms, Quantum Computing, Physics, Mathematics, Education.
follows: General density matrix Where each r is some real number and whenever the sum of each squared is 1 the density matrix corresponds to a pure state. And one last thing we need to remember is the following relations for the trace of Pauli matrices, where index 0 corresponds to the identity