{
  "id": "density-matrix",
  "title": "Density Matrix",
  "lang": "en",
  "source_lang": "en",
  "summary": "A density matrix represents a quantum state, encompassing pure states, statistical mixtures, and the reduced states of entangled systems.",
  "category": "science",
  "subcategory": "physics",
  "type": "concept",
  "aliases": [
    "Density operator",
    "Quantum density matrix",
    "Statistical operator"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/density-matrix/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/density-matrix/",
      "json": "https://aiwiki.page/zh/density-matrix.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A density matrix is a mathematical representation of a state in quantum mechanics that determines the probabilities of measurement outcomes. Unlike a wave function or state vector alone, it can describe both pure states and mixed states, including statistical mixtures and subsystems entangled with an environment. Conventionally denoted \\(\\rho\\), it provides a common framework for quantum uncertainty and classical randomness. The term density operator emphasizes the basis-independent object; density matrix refers to its representation in a chosen basis. (quantum.cloud.ibm.com)"
    },
    {
      "heading": "Mathematical definition",
      "text": "For a finite-dimensional system with Hilbert space \\(\\mathcal H\\), a density matrix is a square matrix satisfying\n\n\\[\\rho=\\rho^\\dagger,\\qquad \\langle v|\\rho|v\\rangle\\geq0,\\qquad \\operatorname{Tr}\\rho=1.\\]\n\nHere \\(\\dagger\\) denotes the conjugate transpose, positivity holds for every vector \\(|v\\rangle\\), and the trace is the sum of diagonal entries. Thus \\(\\rho\\) is Hermitian, positive semidefinite, and normalized. Its entries may be complex numbers, but its eigenvalues are real, nonnegative, and sum to one. In infinite-dimensional Hilbert spaces, the corresponding definition requires a positive trace-class operator with unit trace. (quantum.cloud.ibm.com)\n\nBy the spectral theorem,\n\n\\[\\rho=\\sum_j\\lambda_j|j\\rangle\\langle j|,\\]\n\nwhere the eigenvectors form an orthonormal basis. The eigenvalues constitute a probability distribution. Density matrices form a convex set: any probabilistically weighted average of valid density matrices is another valid density matrix. (learning.quantum.ibm.com)"
    },
    {
      "heading": "Pure states, mixtures, and coherence",
      "text": "A normalized vector \\(|\\psi\\rangle\\) defines a pure state through\n\n\\[\\rho=|\\psi\\rangle\\langle\\psi|.\\]\n\nThis is a rank-one projection, satisfying \\(\\rho^2=\\rho\\). Its rank is one, and multiplying \\(|\\psi\\rangle\\) by an overall phase does not change \\(\\rho\\). A statistical preparation choosing \\(|\\psi_k\\rangle\\) with probability \\(p_k\\) instead gives\n\n\\[\\rho=\\sum_kp_k|\\psi_k\\rangle\\langle\\psi_k|, \\qquad p_k\\geq0,\\quad \\sum_kp_k=1.\\]\n\nThe vectors need not be orthogonal. Distinct preparation ensembles can produce exactly the same density matrix and therefore cannot be distinguished by measurements on that system alone. A mixed state has rank greater than one. (preskill.caltech.edu)\n\nA mixture differs from a quantum superposition. For a qubit, compare the pure state \\(|+\\rangle=(|0\\rangle+|1\\rangle)/\\sqrt2\\) with an equal mixture of \\(|0\\rangle\\) and \\(|1\\rangle\\):\n\n\\[\\rho_+=\\frac12 \\begin{pmatrix}1&1\\\\1&1\\end{pmatrix}, \\qquad \\rho_{\\mathrm{mix}}=\\frac12 \\begin{pmatrix}1&0\\\\0&1\\end{pmatrix}.\\]\n\nBoth yield equal computational-basis probabilities, but measuring in the \\(|+\\rangle,|-\\rangle\\) basis distinguishes them. Off-diagonal entries encode coherence relative to the chosen basis and affect interference. Diagonality is basis-dependent: every density matrix is diagonal in an eigenbasis, so diagonality alone does not make a system classical. (quantum.cloud.ibm.com)"
    },
    {
      "heading": "Measurements and observable quantities",
      "text": "The expectation value of an observable \\(A\\) is\n\n\\[\\langle A\\rangle=\\operatorname{Tr}(\\rho A).\\]\n\nFor a projective measurement with outcome projector \\(P_a\\), the Born rule becomes \\(p(a)=\\operatorname{Tr}(\\rho P_a)\\). More generally, a positive-operator-valued measurement uses positive operators \\(E_a\\) summing to the identity, with \\(p(a)=\\operatorname{Tr}(\\rho E_a)\\). These formulas apply equally to pure and mixed states. (preskill.caltech.edu)\n\nThe outcome probability does not, by itself, specify the post-measurement state. For an ideal projective measurement conditioned on outcome \\(a\\),\n\n\\[\\rho_a=\\frac{P_a\\rho P_a}{\\operatorname{Tr}(\\rho P_a)},\\]\n\nprovided the denominator is nonzero. Experimental reconstruction of a density matrix from measurements on many identically prepared systems is called quantum state tomography. (fab.cba.mit.edu)"
    },
    {
      "heading": "Composite systems and reduced states",
      "text": "The joint Hilbert space of systems \\(A\\) and \\(B\\) is their tensor product, \\(\\mathcal H_A\\otimes\\mathcal H_B\\). Their joint state is described by \\(\\rho_{AB}\\). When only \\(A\\) is considered, its reduced state is obtained by the partial trace:\n\n\\[\\rho_A=\\operatorname{Tr}_B\\rho_{AB}.\\]\n\nThis operation discards access to \\(B\\) while preserving all measurement predictions concerning \\(A\\). (learning.quantum.ibm.com)\n\nEntanglement allows a globally pure state to have mixed reduced states. For the Bell state \\((|00\\rangle+|11\\rangle)/\\sqrt2\\), each individual qubit has density matrix \\(I/2\\), although the pair is pure. This local mixedness does not require an observer actually to measure the other qubit. Consequently, a mixed density matrix need not represent ignorance of a separately existing pure state of the subsystem. (quantum.cloud.ibm.com)"
    },
    {
      "heading": "Time evolution and thermal states",
      "text": "For an isolated system, unitary evolution gives \\(\\rho(t)=U(t)\\rho(0)U^\\dagger(t)\\). The Schrödinger equation implies the Liouville–von Neumann equation,\n\n\\[i\\hbar\\frac{d\\rho}{dt}=[H,\\rho],\\]\n\nwhere \\(H\\) is the Hamiltonian operator. The equation applies to arbitrary mixtures because it is linear in \\(\\rho\\). (ocw.mit.edu)\n\nEnvironmental interactions require a reduced-system description and can change purity. In quantum decoherence, coherence relative to a relevant basis is suppressed; this need not imply that all off-diagonal entries vanish in every basis. Density matrices therefore provide a natural language for quantum noise. (quantum.cloud.ibm.com)\n\nIn statistical mechanics, the canonical equilibrium state at temperature \\(T\\) is\n\n\\[\\rho_\\beta=\\frac{e^{-\\beta H}}{Z}, \\qquad Z=\\operatorname{Tr}(e^{-\\beta H}), \\qquad \\beta=\\frac{1}{k_BT},\\]\n\nwhere \\(k_B\\) is the Boltzmann constant. This expression assumes that the partition function \\(Z\\) is finite. In the energy eigenbasis, its populations follow Boltzmann weights. (fab.cba.mit.edu)"
    },
    {
      "heading": "Purity and entropy",
      "text": "Purity is \\(\\operatorname{Tr}(\\rho^2)\\). In dimension \\(d\\), it lies between \\(1/d\\) and \\(1\\); the upper limit characterizes pure states, while the lower limit characterizes the maximally mixed state \\(I/d\\). (preskill.caltech.edu)\n\nThe von Neumann entropy, central to quantum information theory, is\n\n\\[S(\\rho)=-\\operatorname{Tr}(\\rho\\log\\rho) =-\\sum_j\\lambda_j\\log\\lambda_j,\\]\n\nwith \\(0\\log0=0\\). It vanishes for pure states and reaches \\(\\log d\\) for the maximally mixed state. Using base-two logarithms measures it in bits. For a bipartite pure state, the entropy of either reduced density matrix quantifies entanglement; for general mixed states, entropy is not by itself an entanglement measure. (preskill.caltech.edu)"
    }
  ],
  "links": [
    "quantum-mechanics",
    "wave-function",
    "hilbert-space",
    "matrix",
    "matrix-trace",
    "complex-number",
    "eigenvalues-and-eigenvectors",
    "spectral-theorem",
    "orthonormal-basis",
    "probability-distribution",
    "convex-set",
    "orthogonal-projection",
    "matrix-rank",
    "quantum-superposition",
    "qubit",
    "interference",
    "expected-value",
    "born-rule",
    "tensor-product",
    "quantum-entanglement",
    "bell-state",
    "schrodinger-equation",
    "hamiltonian-operator",
    "quantum-decoherence",
    "statistical-mechanics",
    "temperature",
    "boltzmann-constant",
    "von-neumann-entropy",
    "information-theory"
  ],
  "sources": [
    {
      "title": "quantum.cloud.ibm.com/learning/en/courses/general-formulation-of-quantum-inform…",
      "url": "https://quantum.cloud.ibm.com/learning/en/courses/general-formulation-of-quantum-information/density-matrices/introduction"
    },
    {
      "title": "quantum.cloud.ibm.com/learning/en/courses/general-formulation-of-quantum-inform…",
      "url": "https://quantum.cloud.ibm.com/learning/en/courses/general-formulation-of-quantum-information/density-matrices/density-matrix-basics"
    },
    {
      "title": "learning.quantum.ibm.com/course/general-formulation-of-quantum-information/dens…",
      "url": "https://learning.quantum.ibm.com/course/general-formulation-of-quantum-information/density-matrices"
    },
    {
      "title": "preskill.caltech.edu/ph229/notes/chap2.pdf",
      "url": "https://www.preskill.caltech.edu/ph229/notes/chap2.pdf"
    },
    {
      "title": "quantum.cloud.ibm.com/learning/en/courses/tools-for-quantum-advantage/noise-and…",
      "url": "https://quantum.cloud.ibm.com/learning/en/courses/tools-for-quantum-advantage/noise-and-errors"
    },
    {
      "title": "fab.cba.mit.edu/classes/862.16/notes/quantum_computing_communications.pdf",
      "url": "https://fab.cba.mit.edu/classes/862.16/notes/quantum_computing_communications.pdf"
    },
    {
      "title": "ocw.mit.edu/courses/6-977-ultrafast-optics-spring-2005/f806ff596f9bffb74003360e…",
      "url": "https://ocw.mit.edu/courses/6-977-ultrafast-optics-spring-2005/f806ff596f9bffb74003360e2c05c086_MIT6_977S05_textbook.pdf"
    },
    {
      "title": "preskill.caltech.edu/ph219/chap10_6A_2022.pdf",
      "url": "https://www.preskill.caltech.edu/ph219/chap10_6A_2022.pdf"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}