intermediate · Physics · Density Matrices & Mixed States
The Bloch Vector of ρ
For a single qubit, the density matrix has an especially vivid geometric form: a point in or on a ball
of radius one — the Bloch ball.
The Bloch decomposition
Any 2×2 density matrix can be written using the identity and the Pauli matrices
X,Y,Z as
ρ=21(I+rxX+ryY+rzZ)=21(I+r⋅σ),
where r=(rx,ry,rz) is the Bloch vector. This is exact and unique: there is a perfect
one-to-one correspondence between qubit density matrices and Bloch vectors.
Extracting the Bloch vector
Because the Paulis are traceless and Tr(σaσb)=2δab, each
component is an expectation value:
rx=⟨X⟩=Tr(ρX),ry=⟨Y⟩=Tr(ρY),rz=⟨Z⟩=Tr(ρZ).
Carrying out the traces in terms of matrix entries gives the convenient formulas
rx=2Re(ρ01),ry=−2Im(ρ01),rz=ρ00−ρ11.
Length encodes purity
The length of the Bloch vector measures how pure the state is:
Tr(ρ2)=21+∣r∣2.
So:
∣r∣=1 — the surface of the ball — corresponds to a pure state (Tr(ρ2)=1).
∣r∣=0 — the center — is the maximally mixed state ρ=I/2.
0<∣r∣<1 — the interior — is a partially mixed state.
The pure states from earlier modules sat on the surface of the Bloch sphere; mixed states fill the
inside. Decoherence shrinks ∣r∣, pulling the state toward the center.
Try it
The mixed state ρ=(3/41/41/41/4) is real, so ry=0. Compute
its Bloch vector and return the length ∣r∣. Since 0<∣r∣<1, the point lies strictly
inside the Bloch ball — the geometric signature of a mixed state.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.