A state vector describes a qubit you know everything about. Real qubits are partly unknown: they are entangled with something you cannot see, or they have been through a noisy gate. The density matrix handles both cases with one object, and quantum channels (written with Kraus operators) describe how noise acts on it. Without this page the numbers T1, T2 and gate fidelity on a hardware spec sheet stay abstract.

Noise slowly blurs a clean quantum state into a coin flip, like a photo fading in the sun. Rendered for this page.
Mental Model
- A density matrix is a probabilistic mixture of state vectors. Pure states are the special case of a single vector.
- A mixed single-qubit state is a point inside the Bloch ball, and noise moves points inward or toward a pole.
- The reduced state of half an entangled pair is mixed, even when the pair as a whole is pure. This is where mixedness comes from.
- A noise channel is a set of Kraus operators with . Depolarizing, bit flip, phase flip and amplitude damping are the four standard ones.
- T1 is energy relaxation, T2 is loss of phase coherence, and always.
1. Pure and Mixed States
For an ensemble where state occurs with probability ,
The matrix is Hermitian, positive semidefinite and has trace 1. Expectation values follow , and measurement probabilities are , so everything on Measurement and the Born Rule carries over.
The purity equals 1 for a pure state and falls to for the maximally mixed state . Different ensembles can give the same : a 50/50 mix of and a 50/50 mix of are both , and no measurement can tell them apart.
Bloch Vector of a Mixed State
Every single-qubit density matrix can be written
The components are again . Pure states have (the surface of the Bloch sphere), the maximally mixed state is the center, and purity is . A state with is pure; the state with has length 0.8 and purity .
2. Partial Trace
To describe one part of a joint state, trace out the rest. For ,
Worked example
Take , so
Tracing out sends and to 1, but the cross terms contain and vanish. What remains is
Qiskit’s
partial_tracegives the same matrix with purity 0.5. The whole is pure, one half is maximally mixed. The coherence is not gone, it is in correlations between and (see Entanglement and Bell States).
from qiskit import QuantumCircuit
from qiskit.quantum_info import DensityMatrix, Statevector, partial_trace
qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
rho_a = partial_trace(DensityMatrix(Statevector(qc)), [1]) # trace out qubit 1
print(rho_a.data, rho_a.purity()) # [[.5, 0], [0, .5]], 0.53. Channels and Kraus Operators
Any physical operation on a system, including the effect of an environment it interacts with, can be written
A unitary is the one-operator case. The channels below are the models behind most noise simulations, including those in QGSS: Noise, Backends and Benchmarking.
Depolarizing
With probability the state is replaced by the maximally mixed state. The Bloch vector shrinks uniformly by , so with becomes , which I confirmed numerically. Software packages differ on whether multiplies or a set of three Pauli errors, so check the convention before comparing numbers.
Bit Flip and Phase Flip
Bit flip applies with probability : . The component is untouched and shrink by . Phase flip applies instead: and shrink by and is untouched. For and , the off-diagonal entries drop from 0.5 to 0.4.
Amplitude Damping
This models energy loss from to with probability :
With , becomes , and ends with populations and off-diagonals reduced by . Note the asymmetry: unlike depolarizing noise, this channel has a preferred end state, .
4. T1 and T2
On hardware, noise is characterized by two times.
T1 is the energy relaxation time. Amplitude damping with gives population in decaying as . The same process shrinks coherences by .
T2 is the coherence time. Pure dephasing, with rate , adds to the relaxation contribution:
Because , we get . A qubit whose coherence decays as fast as relaxation allows has , and any extra dephasing pulls below that. If a spec sheet or a calibration table ever shows above , the measurement is off.
Worked example
Illustrative numbers: and a circuit of duration . Then and amplitude damping alone shrinks coherences by . Real devices have two-qubit gates of order tens to hundreds of nanoseconds, which is why a circuit of hundreds of gates can still fit well inside these times, and why idle time during slow readout matters.
5. Fidelity
Fidelity measures how close two states are. For general states,
and when one of them is pure, . It is 1 for identical states. Two quick values: against has , and after depolarizing with has .
Gate fidelity applies the same idea to a channel versus its ideal unitary. Randomized benchmarking reports an average error per gate, and noise-aware mitigation (see QGSS: Error Mitigation with Samplomatic) learns channels like those above to undo their average effect.
Related
- Qubits and the Bloch Sphere for the pure-state picture that the ball extends.
- Measurement and the Born Rule for averaging over unknown outcomes.
- Entanglement and Bell States for where reduced mixed states come from.
- Qubit Hardware Platforms for typical T1 and T2 scales per platform.
- Quantum Error Correction for protecting against exactly these channels.
- QGSS: Noise, Backends and Benchmarking for noise models built from real calibration data.