← Atlas

Operators · Thermal state preparation

Single-qubit thermal (Gibbs) state

The thermal (Gibbs) state of a single qubit in a longitudinal field, prepared exactly via a one-ancilla purification circuit.

Exact & formalUpdated

View frozen graph

ancillasystemStep 1 of 2 · RY(θ) · on ancillaRY(θ)Step 2 of 2 · CX · on ancilla, systemCX

2 steps across 2 wires. Hover a step, or press play to go through them in order.

Expected outcomes

  • p0 (system in |0⟩)73%
  • p1 (system in |1⟩)27%
  • Steps2
  • Wires2
  • Qubits1 system + 1 ancilla
  • Depth2 gates (RY, CNOT)
  • Free parameterθ(β, Δ)
  • Papers1

For a single-qubit Hamiltonian H=−Δ2ZH = -\frac{\Delta}{2}Z with eigenvalues E0=−Δ/2E_0=-\Delta/2 (for ∣0⟩|0\rangle) and E1=+Δ/2E_1=+\Delta/2 (for ∣1⟩|1\rangle), the Gibbs state at inverse temperature β=1/kBT\beta = 1/k_BT is

ρ(β)=e−βHZ=p0∣0⟩⟨0∣+p1∣1⟩⟨1∣,p0=11+e−βΔ,p1=e−βΔ1+e−βΔ.\rho(\beta) = \frac{e^{-\beta H}}{Z} = p_0 |0\rangle\langle0| + p_1 |1\rangle\langle1|, \qquad p_0 = \frac{1}{1+e^{-\beta\Delta}},\quad p_1 = \frac{e^{-\beta\Delta}}{1+e^{-\beta\Delta}}.

Purification construction. Introduce an ancilla and prepare ∣ϕ⟩AS=cos⁡(θ/2)∣0⟩A∣0⟩S+sin⁡(θ/2)∣1⟩A∣1⟩S|\phi\rangle_{AS} = \cos(\theta/2)|0\rangle_A|0\rangle_S + \sin(\theta/2)|1\rangle_A|1\rangle_S by applying Ry(θ)R_y(\theta) to the ancilla and then CNOTA→S\mathrm{CNOT}_{A\to S}. Tracing out the ancilla gives the system the reduced density matrix diag(cos⁡2(θ/2),sin⁡2(θ/2))\mathrm{diag}(\cos^2(\theta/2), \sin^2(\theta/2)). Choosing

θ=2arctan⁡ ⁣(e−βΔ/2)\theta = 2\arctan\!\big(e^{-\beta\Delta/2}\big)

makes cos⁡2(θ/2)=p0\cos^2(\theta/2) = p_0 and sin⁡2(θ/2)=p1\sin^2(\theta/2) = p_1 exactly — this is a standard identity since tan⁡(θ/2)=e−βΔ/2\tan(\theta/2) = e^{-\beta\Delta/2} implies cos⁡2(θ/2)=1/(1+tan⁡2(θ/2))=1/(1+e−βΔ)=p0\cos^2(\theta/2) = 1/(1+\tan^2(\theta/2)) = 1/(1+e^{-\beta\Delta}) = p_0.

Limits. As β→0\beta \to 0 (infinite temperature), θ→π/2\theta \to \pi/2 and ρ→I/2\rho \to I/2, the maximally mixed state. As β→∞\beta \to \infty (zero temperature), θ→0\theta \to 0 and ρ→∣0⟩⟨0∣\rho \to |0\rangle\langle0|, the ground state — recovering ordinary ground-state preparation as the T=0T=0 limit of Gibbs-state preparation.

Beyond one qubit. For interacting many-body Hamiltonians this single-ancilla trick does not generalize directly (the purification's Schmidt rank must match the Hilbert space dimension in general), and practical quantum Gibbs-sampling proposals instead use quantum Metropolis sampling, quantum imaginary-time evolution (QITE), or variational thermofield-double constructions — each with its own resource and convergence tradeoffs.

References

Exact & formal
  • Direct mathematics
  • Verified by construction
  • Peer-reviewed paper
Method
For H = -(Delta/2) Z the exact Boltzmann populations p0 = 1/(1+e^{-beta*Delta}), p1 = e^{-beta*Delta}/(1+e^{-beta*Delta}) were derived analytically and compared against the reduced density matrix of the system qubit obtained by tracing out the ancilla after the RY(theta)-CNOT purification circuit, for theta = 2*arctan(exp(-beta*Delta/2)).
Result
Pass · the reduced single-qubit state is diagonal with populations matching the Boltzmann distribution exactly for the stated theta.
Caveat
This construction only produces the thermal state of a single non-interacting qubit (diagonal Hamiltonian); it is not a general-purpose Gibbs sampler for interacting many-body Hamiltonians, which require more elaborate protocols (e.g. quantum Metropolis or QITE).
Sampling from the thermal quantum Gibbs state and evaluating partition functions with a quantum computer ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
thermal stategibbs statepurificationmixed state

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.