In quantum mechanics, states can (often) be described by density matrices. That is, if $A$ is an observable, it's expected value is given by $\langle A \rangle = Tr(\rho A)$, where $\rho$ is a density matrix (or operator in the infinite dimensional case). This formulation (as opposed to using state vectors for example) has the advantage that it's easy to described so-called mixed states (i.e. non-pure states). In this context it is in a sense more of a tool, especially useful when studying statistical mechanics.