A density matrix is a matrix that describes the statistical state of a system in quantum mechanics. The density matrix is especially helpful for dealing with mixed states, which consist of a statistical ensemble of several different quantum systems. The opposite of a mixed state is a pure state. State vectors, also called kets, describe only pure states, whereas a density matrix can describe both pure and mixed states. A density matrix is a matrix that describes the statistical state of a system in quantum mechanics. The density matrix is especially helpful for dealing with mixed states, which consist of a statistical ensemble of several different quantum systems. The opposite of a mixed state is a pure state. State vectors, also called kets, describe only pure states, whereas a density matrix can describe both pure and mixed states.