Heisenberg exchange generates SWAP, √SWAP and, with Z rotations, a CZ gate
Pulsing the exchange J S1·S2 for an integrated area π swaps two spins and for π/2 gives the entangling √SWAP; two √SWAP pulses separated by a single-spin Z rotation, followed by Z rotations, make a controlled-Z gate. Exchange plus single-spin rotations is therefore universal.
Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01
AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.
Let θ=∫J(t)dt and U(θ)=exp(−iθS1⋅S2), and let
SWAP exchange the two qubits. Then
U(θ)=eiθ/4(cos2θI−isin2θSWAP),
so U(π)=−ieiπ/4SWAP and U(π/2)=eiπ/8(I−iSWAP)/2, a
square root of SWAP up to phase, which is entangling. Moreover, with Sjz=Zj/2,
Two spin-1/2 qubits evolving under H(t)=J(t)S1⋅S2 while the exchange is on, with no Zeeman difference between them during the pulse; single-qubit Z rotations available separately. Units with ℏ=1; basis ∣00⟩,∣01⟩,∣10⟩,∣11⟩ with ∣0⟩=∣↑⟩.
The exchange operator.S1⋅S2=41(X1X2+Y1Y2+Z1Z2).
The operator X1X2+Y1Y2+Z1Z2 has eigenvalue +1 on the three triplet states and
−3 on the singlet, while SWAP has eigenvalue +1 on triplets and −1 on the singlet. Both
are diagonal in the same basis, and comparing eigenvalues gives
X1X2+Y1Y2+Z1Z2=2SWAP−I, i.e.
S1⋅S2=21SWAP−41I.
The propagator. Since SWAP2=I, for any real ϕ,
e−iϕSWAP=cosϕI−isinϕSWAP. Hence
U(θ)=eiθ/4e−i2θSWAP=eiθ/4(cos2θI−isin2θSWAP).
At θ=π this is −ieiπ/4SWAP. At θ=π/2 it is
eiπ/8(I−iSWAP)/2, whose square is
eiπ/4(I−2iSWAP−I)/2=−ieiπ/4SWAP, so it is a square root
of SWAP up to phase. It is entangling: applied to ∣01⟩ it gives
eiπ/8(∣01⟩−i∣10⟩)/2.
The CZ construction. Use eiπS1z=eiπZ1/2=iZ1 and drop global phases.
The core is
With SWAPZ1SWAP=Z2 and SWAPZ1=Z2SWAP,
M=Z1−Z2−i(Z1+Z2)SWAP. On basis states (Zj has eigenvalue +1 on
∣0⟩): M∣00⟩=−2i∣00⟩, M∣01⟩=2∣01⟩, M∣10⟩=−2∣10⟩,
M∣11⟩=2i∣11⟩, the SWAP term vanishing on ∣01⟩ and ∣10⟩ because
Z1+Z2=0 there. So
U(2π)iZ1U(2π)∝2iM=diag(1,i,−i,−1).
Finally e−i2πS1ze+i2πS2z=e−iπZ1/4eiπZ2/4
multiplies ∣z1z2⟩ (with zj=±1) by e−iπ(z1−z2)/4, i.e. by
(1,−i,i,1). The product is diag(1,1,1,−1), the CZ gate. The same
result was confirmed numerically by multiplying the 4×4 matrices.
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)
U(theta) formula, U(pi) = -i e^{i pi/4} SWAP, U(pi/2)^2 = U(pi), and the stated five-factor product equal to CZ = diag(1,1,1,-1) up to phase verified numerically with numpy/scipy in the stated basis (|0> = up). Compared with Loss and DiVincenzo, arXiv cond-mat/9701055 (PRA 57, 120, 1998), Eq. (2): same sqrt(SWAP) - Z(pi) - sqrt(SWAP) construction; their printed signs on the final Z rotations correspond to the opposite spin labelling (with the record's labelling they give CZ times Z x Z), so the record's signs are the correct ones for its convention. Crossref metadata of the reference match.
Revision history
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
Current revision 0bb0f6d3e06c2914. Source file knowledge/records/theorem/exchange-generates-swap-and-cz.md in the content repository (readable there once it is public).