Site Tools


density-matrix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
density-matrix [May 22, 2026 at 23:34] Ivan Janevskidensity-matrix [June 13, 2026 at 03:13] (current) – external edit 127.0.0.1
Line 1: Line 1:
 # Density matrix # Density matrix
-**Density matrix** (written as $\rho$) reprsents a quantum state. It is a strictly better way to represent a quantum state compared to the state vector $\lvert\psi\rangle$. While a state vector $\vert\psi\rangle$ can only represent pure states, a density matrix can represent mixed states as well. It's used in quantum error correction equations like the Lindbald master equation.+**Density matrix** (written as $\rho$) is a matrix representation of a quantum state.
  
-If you have a state vector $\lvert\psi\rangle$ you can always turn it into a density matrix in the following way+It'more general way to represent a quantum state compared to the [[state-vector|state vector]] $\lvert\psi\rangle$. While a state vector can only represent [[pure-state|pure states]], a density matrix can represent [[mixed-state|mixed states]] as well, making it the correct tool for open quantum systems, noisy circuits, and statistical ensembles of quantum states. 
-$$\rho = \lvert\psi\rangle\langle\psi\lvert$$+ 
 +Every pure state $\lvert\psi\rangle$ has corresponding density matrix constructed by the outer product of the ket with its bra. 
 + 
 +$$\rho = \lvert\psi\rangle\langle\psi\rvert$$ 
 + 
 +For example, the density matrices of the two computational basis states $\lvert 0\rangleand $\lvert 1\rangle$ are the projectors onto those states. 
 + 
 +$$\rho_0 = \lvert 0\rangle\langle 0\rvert = \begin{pmatrix}1 & 0 \\ 0 & 0\end{pmatrix}, \qquad \rho_1 = \lvert 1\rangle\langle 1\rvert = \begin{pmatrix}0 & 0 \\ 0 & 1\end{pmatrix}$$ 
 + 
 +## Properties 
 +A density matrix $\rho$ always satisfies three properties: it is Hermitian ($\rho^\dagger = \rho$), positive semidefinite ($\rho \geq 0$), and has unit trace ($\text{tr}(\rho) = 1$). These three conditions are necessary and sufficient for $\rho$ to represent a valid quantum state. The **purity** $\text{tr}(\rho^2)$ ranges from $1/d$ (maximally mixed state in dimension $d$) to $1$ (pure state). 
 + 
 +## Mixed states 
 +A mixed state arises when a quantum system is in state $\lvert\psi_k\rangle$ with classical probability $p_k$. Its density matrix is the convex combination of the individual pure-state density matrices. 
 + 
 +$$\rho = \sum_k p_k\lvert\psi_k\rangle\langle\psi_k\rvert, \qquad \sum_k p_k = 1, \quad p_k \geq 0$$ 
 + 
 +## Time evolution 
 +Under Hamiltonian evolution, the density matrix evolves according to the von Neumann equation $d\rho/dt = -i[H,\rho]/\hbar$. For open systems with environmental noise, this generalizes to the [[lindblad-equation|Lindblad master equation]], which adds dissipative terms describing decoherence and relaxation.
  
density-matrix.1779492844.txt.gz · Last modified: by Ivan Janevski