# Density matrix

A **density matrix** is a matrix that describes the statistical state of a system in quantum mechanics. The probability for any outcome of any well-defined measurement upon a system can be calculated from the density matrix for that system. The extreme points in the set of density matrices are the pure states, which can also be written as state vectors or wavefunctions. Density matrices that are not pure states are *mixed states.* Any mixed state can be represented as a convex combination of pure states, and so density matrices are helpful for dealing with statistical ensembles of different possible preparations of a quantum system, or situations where a precise preparation is not known, as in quantum statistical mechanics.

Describing a quantum state by its density matrix is a fully general alternative formalism to describing a quantum state by its state vector (its "ket") or by a statistical ensemble of kets. However, in practice, it is often most convenient to use density matrices for calculations involving mixed states, and to use kets for calculations involving only pure states.

The density matrix is the quantum-mechanical analogue to a phase-space probability measure (probability distribution of position and momentum) in classical statistical mechanics.

Mixed states arise in situations where the experimenter does not know which particular states are being manipulated. Examples include a system in thermal equilibrium at a temperature above absolute zero, or a system with an uncertain or randomly varying preparation history (so one does not know which pure state the system is in). Also, if a quantum system has two or more subsystems that are entangled, then each subsystem must be treated as a mixed state even if the complete system is in a pure state.[1] The density matrix is also a crucial tool in quantum decoherence theory.

The density matrix for an experimental system becomes a diagonal matrix when a measurement happens. This means that it describes a classical probabilistic superposition of the different measurement outcomes (eigenvalues)[2], and we can imagine the matrix for a system gradually becoming diagonal as the system naturally decoheres due to connection with the environment without a measurement happening.[3]. In other words, the off-diagonal terms of any density matrix express the purely quantum correlations, and the diagonal terms express classical correlations (measurement eigenvalues).[4]

The density matrix is a representation of a linear operator called the **density operator**. The density matrix is obtained from the density operator by choice of basis in the underlying space. In practice, the terms *density matrix* and *density operator* are often used interchangeably. Both matrix and operator are self-adjoint (or Hermitian), positive semi-definite, of trace one, and may
be infinite-dimensional.[5]

## History

The formalism of density operators and matrices was introduced by John von Neumann[6] in 1927 and independently, but less systematically by Lev Landau[7][8] and Felix Bloch[9] in 1927 and 1946 respectively.

## Pure and mixed states

In quantum mechanics, the state of a quantum system is represented by a state vector, denoted (and pronounced *ket*). A quantum system with a state vector is called a *pure state*. However, it is also possible for a system to be in a statistical ensemble of different state vectors: For example, there may be a 50% probability that the state vector is and a 50% chance that the state vector is . This system would be in a *mixed state*. The density matrix is especially useful for mixed states, because any state, pure or mixed, can be characterized by a single density matrix.[10]^{:102}

A mixed state is different from a quantum superposition. The probabilities in a mixed state are classical probabilities (as in the probabilities one learns in classic probability theory / statistics), unlike the quantum probabilities in a quantum superposition. In fact, a quantum superposition of pure states is another pure state, for example . In this case, the coefficients are not probabilities, but rather probability amplitudes.[10]^{:81}

### Example: light polarization

An example of pure and mixed states is light polarization. Photons can have two helicities, corresponding to two orthogonal quantum states, (right circular polarization) and (left circular polarization). A photon can also be in a superposition state, such as (vertical polarization) or (horizontal polarization). More generally, it can be in any state (with ), corresponding to linear, circular, or elliptical polarization. If we pass polarized light through a circular polarizer which allows either only polarized light, or only polarized light, intensity would be reduced by half in both cases. This may make it *seem* like half of the photons are in state and the other half in state . But this is not correct: Both and photons are partly absorbed by a vertical linear polarizer, but the light will pass through that polarizer with no absorption whatsoever.

However, unpolarized light (such as the light from an incandescent light bulb) is different from any state like (linear, circular, or elliptical polarization). Unlike linearly or elliptically polarized light, it passes through a polarizer with 50% intensity loss whatever the orientation of the polarizer; and unlike circularly polarized light, it cannot be made linearly polarized with any wave plate because randomly oriented polarization will emerge from a wave plate with random orientation. Indeed, unpolarized light cannot be described as *any* state of the form in a definite sense. However, unpolarized light *can* be described with ensemble averages, e.g. that each photon is either with 50% probability or with 50% probability. The same behavior would occur if each photon was either vertically polarized with 50% probability or horizontally polarized with 50% probability (since a vertically or horizontally polarized state can be expressed as a linear combination of and states).

Therefore, unpolarized light cannot be described by any pure state, but can be described as a statistical ensemble of pure states in at least two ways (the ensemble of half left and half right circularly polarized, or the ensemble of half vertically and half horizontally linearly polarized). These two ensembles are completely indistinguishable experimentally, and therefore they are considered the same mixed state. One of the advantages of the density matrix is that there is just one density matrix for each mixed state, whereas there are many statistical ensembles of pure states for each mixed state. Nevertheless, the density matrix contains all the information necessary to calculate any measurable property of the mixed state.

Where do mixed states come from? To answer that, consider how to generate unpolarized light. One way is to use a system in thermal equilibrium, a statistical mixture of enormous numbers of microstates, each with a certain probability (the Boltzmann factor), switching rapidly from one to the next due to thermal fluctuations. Thermal randomness explains why an incandescent light bulb, for example, emits unpolarized light. A second way to generate unpolarized light is to introduce uncertainty in the preparation of the system, for example, passing it through a birefringent crystal with a rough surface, so that slightly different parts of the beam acquire different polarizations. A third way to generate unpolarized light uses an EPR setup: A radioactive decay can emit two photons traveling in opposite directions, in the quantum state . The two photons *together* are in a pure state, but if you only look at one of the photons and ignore the other, the photon behaves just like unpolarized light.

More generally, mixed states commonly arise from a statistical mixture of the starting state (such as in thermal equilibrium), from uncertainty in the preparation procedure (such as slightly different paths that a photon can travel), or from looking at a subsystem entangled with something else.[10]^{:101–106}

## Definition

For a finite-dimensional function space, the most general density operator is of the form

where the coefficients are non-negative and add up to one, and is an outer product written in bra-ket notation. This represents a mixed state, with probability that the system is in the pure state .

For the above example of unpolarized light, the density operator equals

where is the left-circularly-polarized photon state and is the right-circularly-polarized photon state.

### Different statistical ensembles with the same density matrix

An earlier section gave an example of two statistical ensembles of pure states that have the same density operator: unpolarized light can be described as both 50% right-circular-polarized and 50% left-circular-polarized, or 50% horizontally-polarized and 50% vertically-polarized. Such equivalent ensembles or mixtures cannot be distinguished by any measurement. This equivalence can be characterized precisely. This can be illustrated with the case of finite ensembles of states on a finite-dimensional Hilbert space. Two such ensembles define the same density operator if and only if there is a partial isometry whose matrix is , with

This is simply a restatement of the following fact from linear algebra: for two matrices and , if and only if for some partial isometry . In case the two ensembles have the same size, the matrix is square and hence unitary. (See square root of a matrix for more details on this case.) Thus there is a freedom in the ket mixture or ensemble that gives the same density operator. However, if the kets making up the mixture are restricted to be a specific orthonormal basis, then the original probabilities are uniquely recoverable from that basis, as the eigenvalues of the density matrix.

### Mathematical properties and purity condition

In operator language, a density operator is a positive semidefinite, Hermitian operator of trace 1 acting on the state space.[1] A density operator describes a pure state if it is a rank one projection. Similarly, a density operator describes a pure state if and only if

- ,

i.e. the state is idempotent.[11]^{:73} This is true regardless of whether the Hilbert space H is finite-dimensional or not.

Geometrically, when the state is not expressible as a convex combination of other states, it is a pure state.[1] The family of mixed states is a convex set and a state is pure if it is an extremal point of that set.

It follows from the spectral theorem for compact self-adjoint operators that every mixed state is a countable convex combination of pure states. This representation is not unique. Furthermore, Gleason's theorem establishes that any self-consistent assignment of probabilities to measurement outcomes, where measurements are orthonormal bases on the Hilbert space, can be written as a density operator, as long as the dimension of the Hilbert space is larger than 2.[12] This restriction on the dimension can be removed by generalizing the notion of measurement to POVMs.[13][14]

## Measurement

Let be an observable of the system, and suppose the ensemble is in a mixed state such that each of the pure states occurs with probability . Then the corresponding density operator equals

The expectation value of the measurement can be calculated by extending from the case of pure states (see Measurement in quantum mechanics):

where denotes trace. Thus, the familiar expression for pure states is replaced by

for mixed states.

Moreover, if has spectral resolution

where , the corresponding density operator after the measurement is given by

Note that the above density operator describes the full ensemble after measurement. The sub-ensemble for which the measurement result was the particular value is described by the different density operator

This is true assuming that is the only eigenket (up to phase) with eigenvalue ; more generally, in this expression would be replaced by the projection operator into the eigen*space* corresponding to eigenvalue .

More generally, suppose is a function that associates to each observable a number , which we may think of as the "expectation value" of . If satisfies some natural properties (such as giving positive values on positive operators), then there is a unique density matrix such that

for all .[1] That is to say, any reasonable "family of expectation values" can be represented by a density matrix. This observation suggests that density matrices are the most general notion of a quantum state.

## Entropy

The von Neumann entropy of a mixture can be expressed in terms of the eigenvalues of or in terms of the trace and logarithm of the density operator . Since is a positive semi-definite operator, it has a spectral decomposition such that , where are orthonormal vectors, , and . Then the entropy of a quantum system with density matrix is

If are states that have support on orthogonal subspaces, then the von Neumann entropy of a convex combination of these states,

is given by the von Neumann entropies of the states and the Shannon entropy of the probability distribution :

When the states do not have orthogonal supports, the sum on the right-hand side is strictly greater than the von Neumann entropy of the convex combination .[10]^{:518}

This entropy can increase, but never decrease, with a projective measurement. However, generalised measurements can decrease entropy.[10]^{:514}[15] The entropy of a pure state is zero, while that of a proper mixture is always greater than zero. Therefore, a pure state may be converted into a mixture by a measurement, but a proper mixture can *never* be converted into a pure state. Thus the act of measurement induces a fundamental irreversible change on the density matrix; this is analogous to the "collapse" of the state vector, or wavefunction collapse. Perhaps counterintuitively, the measurement actually *decreases information* by erasing quantum interference in the composite system, see quantum entanglement, einselection, and quantum decoherence.

A subsystem of a larger system can be turned from a mixed to a pure state, but only by increasing the von Neumann entropy elsewhere in the system. This is analogous to how the entropy of an object can be lowered by putting it in a refrigerator: The air outside the refrigerator's heat exchanger warms up, gaining even more entropy than was lost by the object in the refrigerator. See second law of thermodynamics. See Entropy in thermodynamics and information theory.

## Systems and subsystems

Another motivation for considering density matrices comes from consideration of systems and their subsystems. Suppose we have two quantum systems, described by Hilbert spaces and . The composite system is then the tensor product of the two Hilbert spaces. Suppose now that the composite system is in a pure state . If happens to have the special form , then we may reasonably say that the state of the first subsystem is . In this case, we say that the two systems are not entangled. In general, however, will not decompose as a single tensor product of vectors in and . If cannot be decomposed as a single tensor product of states in the component systems, we say that the two systems are entangled. In that case, there is no reasonable way to associate a pure state to the state .[1]

If, for example, we have a wave function describing the state of two particles, there is no natural way to construct a wave function (i.e., pure state) that describes the states of the first particle—unless happens to be a product of a function and a function .

The upshot of the preceding discussion is that even if the total system is in a pure state, the various subsystems that make it up will typically be in mixed states. Thus, the use of density matrices is unavoidable.

On the other hand, whether the composite system is in a pure state or a mixed state, we can perfectly well construct a density matrix that describes the state of . Denote the density matrix of the composite system of two systems by . Then the state of, say, , is described by a reduced density operator, given by taking the "partial trace" of over .[1]

If the state of happens to be a density matrix of the special form where and are density matrices on and , then the partial trace of with respect to is just . A typical will not be of this form, however.

## The von Neumann equation for time evolution

Just as the Schrödinger equation describes how pure states evolve in time, the **von Neumann equation** (also known as the **Liouville–von Neumann equation**) describes how a density operator evolves in time (in fact, the two equations are equivalent, in the sense that either can be derived from the other.) The von Neumann equation dictates that[16][17]

where the brackets denote a commutator.

Note that this equation only holds when the density operator is taken to be in the Schrödinger picture, even though this equation seems at first look to emulate the Heisenberg equation of motion in the Heisenberg picture, with a crucial sign difference:

where is some *Heisenberg picture* operator; but in this picture the density matrix is *not time-dependent*, and the relative sign ensures that the time derivative of the expected value comes out *the same as in the Schrödinger picture*.[1]

Taking the density operator to be in the Schrödinger picture makes sense, since it is composed of 'Schrödinger' kets and bras evolved in time, as per the Schrödinger picture. If the Hamiltonian is time-independent, this differential equation can be easily solved to yield

For a more general Hamiltonian, if is the wavefunction propagator over some interval, then the time evolution of the density matrix over that same interval is given by

However,[18] the density matrix contains both classical and quantum-mechanical probabilities it is necessary to account for changes in both in the presence of external influences.

## "Quantum Liouville", Moyal's equation

The density matrix operator may also be realized in phase space. Under the Wigner map, the density matrix transforms into the equivalent Wigner function,

The equation for the time evolution of the Wigner function is then the Wigner-transform of the above von Neumann equation,

where is the Hamiltonian, and is the Moyal bracket, the transform of the quantum commutator.

The evolution equation for the Wigner function is then analogous to that of its classical limit, the Liouville equation of classical physics. In the limit of vanishing Planck's constant , reduces to the classical Liouville probability density function in phase space.

The classical Liouville equation can be solved using the method of characteristics for partial differential equations, the characteristic equations being Hamilton's equations. The Moyal equation in quantum mechanics similarly admits formal solutions in terms of quantum characteristics, predicated on the ∗−product of phase space, although, in actual practice, solution-seeking follows different methods.

## Example applications

Density matrices are a basic tool of quantum mechanics, and appear at least occasionally in almost any type of quantum-mechanical calculation. Some specific examples where density matrices are especially helpful and common are as follows:

- Quantum decoherence theory typically involves non-isolated quantum systems developing entanglement with other systems, including measurement apparatuses. Density matrices make it much easier to describe the process and calculate its consequences.
- Similarly, in quantum computation, quantum information theory, and other fields where state preparation is noisy and decoherence can occur, density matrices are frequently used.
- Quantum tomography is the process of experimentally measuring the density matrix of a system [19].

- When analyzing a system with many electrons, such as an atom or molecule, an imperfect but useful first approximation is to treat the electrons as uncorrelated or each having an independent single-particle wavefunction. This is the usual starting point when building the Slater determinant in the Hartree–Fock method. If there are electrons filling the single-particle wavefunctions , then the collection of electrons together can be characterized by a density matrix .

## C*-algebraic formulation of states

It is now generally accepted that the description of quantum mechanics in which all self-adjoint operators represent observables is untenable.[20][21] For this reason, observables are identified with elements of an abstract C*-algebra *A* (that is one without a distinguished representation as an algebra of operators) and states are positive linear functionals on *A*. However, by using the GNS construction, we can recover Hilbert spaces which realize *A* as a subalgebra of operators.

Geometrically, a pure state on a C*-algebra *A* is a state which is an extreme point of the set of all states on *A*. By properties of the GNS construction these states correspond to irreducible representations of *A*.

The states of the C*-algebra of compact operators *K*(*H*) correspond exactly to the density operators, and therefore the pure states of *K*(*H*) are exactly the pure states in the sense of quantum mechanics.

The C*-algebraic formulation can be seen to include both classical and quantum systems. When the system is classical, the algebra of observables become an abelian C*-algebra. In that case the states become probability measures, as noted in the introduction.

## See also

## Notes and references

- Hall, Brian C. (2013). "Systems and Subsystems, Multiple Particles".
*Quantum Theory for Mathematicians*. Graduate Texts in Mathematics.**267**. pp. 419–440. doi:10.1007/978-1-4614-7116-5_19. ISBN 978-1-4614-7115-8. - Why More Is Different: Philosophical Issues in Condensed Matter Physics... Edited by Brigitte Falkenburg et.al., 2015, Springer, ISBN 978-3662439104.
- Decoherence and the Transition from Quantum to Classical, Wojciech H. Zurek, Physics Today 44, 10, 36 (1991); https://doi.org/10.1063/1.881293
- Decoherence: Basic Concepts and Their Interpretation, H. D. Zeh, 2002, arxiv.
- Fano, U. (1957). "Description of States in Quantum Mechanics by Density Matrix and Operator Techniques".
*Reviews of Modern Physics*.**29**(1): 74–93. Bibcode:1957RvMP...29...74F. doi:10.1103/RevModPhys.29.74. - von Neumann, John (1927), "Wahrscheinlichkeitstheoretischer Aufbau der Quantenmechanik",
*Göttinger Nachrichten*,**1**: 245–272 - "The Damping Problem in Wave Mechanics".
*Collected Papers of L.D. Landau*. 1965. pp. 8–18. doi:10.1016/B978-0-08-010586-4.50007-9. ISBN 9780080105864. - Schlüter, Michael; Sham, Lu Jeu (1982). "Density functional theory".
*Physics Today*.**35**(2): 36–43. Bibcode:1982PhT....35b..36S. doi:10.1063/1.2914933. - Fano, Ugo (1995). "Density matrices as polarization vectors".
*Rendiconti Lincei*.**6**(2): 123–130. doi:10.1007/BF03001661. - Nielsen, Michael; Chuang, Isaac (2000),
*Quantum Computation and Quantum Information*, Cambridge University Press, ISBN 978-0-521-63503-5. - Peres, Asher (1995).
*Quantum Theory: Concepts and Methods*. Kluwer. ISBN 9780792336327. OCLC 901395752. - Gleason, Andrew M. (1957). "Measures on the closed subspaces of a Hilbert space".
*Indiana University Mathematics Journal*.**6**(4): 885–893. doi:10.1512/iumj.1957.6.56050. MR 0096113. - Busch, Paul (2003). "Quantum States and Generalized Observables: A Simple Proof of Gleason's Theorem".
*Physical Review Letters*.**91**(12): 120403. arXiv:quant-ph/9909073. Bibcode:2003PhRvL..91l0403B. doi:10.1103/PhysRevLett.91.120403. PMID 14525351. - Caves, Carlton M.; Fuchs, Christopher A.; Manne, Kiran K.; Renes, Joseph M. (2004). "Gleason-Type Derivations of the Quantum Probability Rule for Generalized Measurements".
*Foundations of Physics*.**34**(2): 193–209. arXiv:quant-ph/0306179. Bibcode:2004FoPh...34..193C. doi:10.1023/B:FOOP.0000019581.00318.a5. - Everett, Hugh (1973), "The Theory of the Universal Wavefunction (1956) Appendix I. "Monotone decrease of information for stochastic processes"",
*The Many-Worlds Interpretation of Quantum Mechanics*, Princeton Series in Physics, Princeton University Press, pp. 128–129, ISBN 978-0-691-08131-1 - Breuer, Heinz; Petruccione, Francesco (2002),
*The theory of open quantum systems*, p. 110, ISBN 978-0-19-852063-4 - Schwabl, Franz (2002),
*Statistical mechanics*, p. 16, ISBN 978-3-540-43163-3 - Grandy, W. T (2003). "Time Evolution in Macroscopic Systems. I: Equations of Motion".
*Foundations of Physics*.**34**: 1–20. arXiv:cond-mat/0303290. Bibcode:2004FoPh...34....1G. doi:10.1023/B:FOOP.0000012007.06843.ed. - Ardila, Luis; Heyl, Markus; Eckardt, André (28 December 2018). "Measuring the Single-Particle Density Matrix for Fermions and Hard-Core Bosons in an Optical Lattice".
*Physical Review Letters*.**121**(260401): 6. arXiv:1806.08171. Bibcode:2018PhRvL.121z0401P. doi:10.1103/PhysRevLett.121.260401. PMID 30636128. - See appendix, Mackey, George Whitelaw (1963),
*Mathematical Foundations of Quantum Mechanics*, Dover Books on Mathematics, New York: Dover Publications, ISBN 978-0-486-43517-6 - Emch, Gerard G. (1972),
*Algebraic methods in statistical mechanics and quantum field theory*, Wiley-Interscience, ISBN 978-0-471-23900-0