Let be a Hilbert space of finite dimension and the space of linear operators on it. A density operator (or state) on is an operator with
where means for every ; such an operator is automatically Hermitian. The set of density operators is written . In an orthonormal basis is a density matrix with entries ; the diagonal entries are the populations and the off-diagonal entries the coherences in that basis.
Expectation values. For a system in state the expectation value of an observable is , and a measurement with POVM elements gives outcome with probability .
Structure. By the spectral theorem every density operator can be written with an orthonormal basis and eigenvalues , . The set is convex and compact: if are states and then is a state. Its extreme points are exactly the rank-one projectors , the pure states. The following are equivalent: is pure; ; ; . A state that is not pure is mixed. The state is the maximally mixed state.
Ensembles. If a source prepares the pure state with probability , every prediction about the output is given by , the density operator of the ensemble. Many different ensembles give the same and are then indistinguishable by any measurement.
Evolution. Under a unitary the state changes as ; general physical evolutions are quantum channels.
Textbook treatments: section 2.4 of Nielsen and Chuang and section 2.1 of Watrous; Fano is a classic review of the formalism.