Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Density operator

A density operator is a positive semidefinite, trace-one operator that represents a general quantum state.

Also called density matrix, state operator

Edition released Coverage: Overview · Technical · Research
On this page

Definition and plain explanation

A density operator describes preparations that cannot be represented by one pure state vector alone. It includes both classical uncertainty about a preparation and the local state of a subsystem entangled with something else. In a chosen basis it becomes a density matrix. The operator is the physical mathematical object; its matrix entries depend on the chosen coordinates.

For an ensemble preparing |psi_k> with probability p_k, rho=sum_k p_k|psi_k><psi_k|. Different ensembles can produce the same rho and therefore identical statistics for all measurements on that system. The matrix is not generally a uniquely recoverable list of which pure state was really prepared.

Mathematical conditions

A valid finite-dimensional density operator obeys rho=rho-dagger, rho>=0, and Tr(rho)=1. Positivity means <v|rho|v>>=0 for every vector |v>, not merely that all diagonal entries are nonnegative. Its eigenvalues are probabilities in a spectral decomposition. The purity Tr(rho^2) lies between 1/d and 1 for dimension d. A pure state has rho^2=rho; a mixed state does not.

Fully solved example

Let rho=[[0.7,0.2i],[-0.2i,0.3]]. Its trace is one and it is Hermitian. The determinant is 0.21-0.04=0.17. The eigenvalues are [1 plus or minus sqrt(1-4 times 0.17)]/2=(1 plus or minus sqrt(0.32))/2, approximately 0.782843 and 0.217157. Both are nonnegative, so rho is valid. Its purity is 0.7^2+0.3^2+2 times 0.2^2=0.66, which confirms it is mixed.

For the Pauli convention Y=[[0,-i],[i,0]], the Bloch components are x=0, y=-0.4, z=0.4. Thus a Y measurement gives +1 with probability (1-0.4)/2=0.3 and -1 with probability 0.7. The sign follows from the off-diagonal convention; casually reading +0.2i as positive Y coherence would give the wrong answer.

Contrast sigma=[[0.7,0.6],[0.6,0.3]]. Its trace and Hermiticity look acceptable, but its determinant is 0.21-0.36=-0.15. It has a negative eigenvalue and cannot describe a quantum state. This catches a common data-processing error: normalizing a reconstructed matrix is insufficient to ensure physicality.

Why it matters and limitations

Density operators make noise, partial information, and measurement statistics compatible in one language. They also make classical simulation expensive: a generic n-qubit density matrix contains 4^n entries. Structured representations may reduce that cost, but their assumptions must be stated. A reconstructed matrix comes with statistical and model uncertainty, not perfect knowledge merely because its entries are printed to many decimals.

Positivity imposes coupled constraints on coherences

Every two-dimensional principal submatrix of a density operator is positive. If its diagonal entries are p_i and p_j and its off-diagonal entry is c_ij, its determinant gives |c_ij|^2<=p_i p_j. This bounds the magnitude of each coherence by the corresponding populations. If p_i=0, then c_ij must vanish for every j. A state cannot have an exactly empty basis component while retaining arbitrary coherence with that component.

The pairwise condition is sufficient for a two-dimensional state once trace and Hermiticity are satisfied, but it is not sufficient in higher dimension. Consider the qutrit matrix with every diagonal entry 1/3 and every off-diagonal entry -1/3. Each two-by-two principal determinant is zero, so all pairwise bounds hold. Yet the vector (1,1,1)/sqrt(3) is an eigenvector with eigenvalue -1/3. Two orthogonal vectors perpendicular to it have eigenvalue 2/3. The matrix is not positive and cannot represent a state.

This counterexample prevents a common shortcut in multilevel reconstruction. Checking individual populations and pairwise coherence magnitudes does not replace checking the positivity of the entire operator. Constraints among three or more components can rule out a matrix even when every displayed pair appears acceptable.

A solved block-positivity calculation

Partition a Hermitian matrix as rho=[[a,v-dagger],[v,B]], where a is positive. For a vector with first component x and remaining components y, its quadratic form can be rewritten as a|x+v-dagger y/a|^2+y-dagger(B-vv-dagger/a)y. Thus rho is positive exactly when the Schur complement B-vv-dagger/a is positive. The calculation completes a square and displays how correlations with the first component consume the positivity available in the remaining block.

Take rho=[[0.5,0.2,0.1i],[0.2,0.3,0],[-0.1i,0,0.2]]. Here a=0.5 and v=(0.2,-0.1i) transpose. The product vv-dagger/a is [[0.08,0.04i],[-0.04i,0.02]]. Subtracting it from B=diag(0.3,0.2) gives S=[[0.22,-0.04i],[0.04i,0.18]]. Its trace is 0.4 and its determinant is 0.22 times 0.18 minus 0.04 squared=0.038. Both eigenvalues are positive, so S is positive and hence rho is positive.

The full trace is one, and the determinant of rho is a det(S)=0.019. This supplies a complete positivity check without printing the three eigenvalues. The division by a is legitimate because a=0.5. If a were zero, positivity would instead force v=0, after which the remaining condition would be B>=0. Applying the same division formula at a=0 would be invalid.

The Schur-complement eigenvalues in the valid example are (10±sqrt(5))/50, approximately 0.244721 and 0.155279. Their product is 0.038, confirming the determinant route. They are eigenvalues of the Schur complement, not of the full density operator; replacing the full spectrum by block spectra would generally be incorrect.

A density operator does not encode a unique preparation history

The matrix rho can be viewed as a weighted sum of rank-one projectors, but that representation is usually nonunique. Even when its eigenvalues are nondegenerate, the spectral ensemble is only a convenient orthogonal ensemble. It need not be the laboratory recipe. Spectral diagonalization identifies intrinsic mathematical properties, while a preparation record describes a particular physical history.

For rho=(I+Z/2)/2, one recipe chooses |0> with probability 3/4 and |1> with probability 1/4. Another chooses equally between two pure states whose Bloch vectors are (sqrt(3)/2,0,1/2) and (-sqrt(3)/2,0,1/2). Their average vector is (0,0,1/2), producing the same rho. The second recipe never prepares either eigenvector of rho, despite giving the same statistics for every measurement on the qubit.

An observer with access to the recipe label can condition on different pure states in the two cases. An observer with only the qubit cannot recover that label from rho. The distinction is a statement about available physical systems and correlations, rather than a preference among mathematically equivalent decompositions.

Sources

  • John Preskill · · Lecture or course notes · preskill.caltech.edu
    Verification scope

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.

  • John Preskill · · Lecture or course notes · preskill.caltech.edu
    Verification scope

    Foundations II: Measurement and Evolution
    John Preskill · Lecture or course notes · preskill.caltech.edu

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.

  • John Watrous · · Textbook material · cs.uwaterloo.ca
    Verification scope

    The Theory of Quantum Information: Chapter 1, Mathematical preliminaries
    John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.ca

    Selected text checked ·

    Chapter introduction, finite-dimensional linear-algebra definitions and Caratheodory theorem were inspected. The author explicitly describes the chapter as review material, not a primary source for all mathematical results.

    Selected passages and metadata were checked; this does not certify every sentence in the encyclopedia, constitute comprehensive literature review, or establish external peer review. Original worked examples are separately recomputed.