Skip to main content
KetQat

Appearance

Theorem · intermediate

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\theta = \int J(t)\,dt and U(θ)=exp⁡(−iθ S1⋅S2)U(\theta) = \exp(-i\theta\,\mathbf S_1\cdot\mathbf S_2), and let SWAP\mathrm{SWAP} exchange the two qubits. Then

U(θ)=eiθ/4(cos⁡θ2 I−isin⁡θ2 SWAP),U(\theta) = e^{i\theta/4}\Big(\cos\tfrac\theta2\, I - i\sin\tfrac\theta2\,\mathrm{SWAP}\Big),

so U(π)=−i eiπ/4 SWAPU(\pi) = -i\,e^{i\pi/4}\,\mathrm{SWAP} and U(π/2)=eiπ/8(I−i SWAP)/2U(\pi/2) = e^{i\pi/8}(I - i\,\mathrm{SWAP})/\sqrt2, a square root of SWAP up to phase, which is entangling. Moreover, with Sjz=Zj/2S_{jz} = Z_j/2,

e−iπ2S1z e+iπ2S2z  U(π2)  eiπS1z  U(π2)  ∝  diag⁡(1,1,1,−1)=CZ,e^{-i\frac\pi2 S_{1z}}\, e^{+i\frac\pi2 S_{2z}}\; U(\tfrac\pi2)\; e^{i\pi S_{1z}}\; U(\tfrac\pi2) \;\propto\; \operatorname{diag}(1, 1, 1, -1) = \mathrm{CZ},

a construction given by Loss and DiVincenzo. With Hadamard gates on the second qubit, CZ becomes CNOT, so pulsed exchange together with single-spin rotations is a universal gate set by the universality of CNOT and single-qubit gates.

Holds when

  • Two spin-1/2 qubits evolving under H(t)=J(t) S1⋅S2H(t) = J(t)\,\mathbf S_1\cdot\mathbf S_2 while the exchange is on, with no Zeeman difference between them during the pulse; single-qubit ZZ rotations available separately. Units with ℏ=1\hbar = 1; basis ∣00⟩,∣01⟩,∣10⟩,∣11⟩\ket{00}, \ket{01}, \ket{10}, \ket{11} with ∣0⟩=∣↑⟩\ket 0 = \ket\uparrow.

Proof

Proof that exchange generates SWAP, √SWAP and CZMachine-checked

The exchange operator. S1⋅S2=14(X1X2+Y1Y2+Z1Z2)\mathbf S_1\cdot\mathbf S_2 = \tfrac14(X_1X_2 + Y_1Y_2 + Z_1Z_2). The operator X1X2+Y1Y2+Z1Z2X_1X_2 + Y_1Y_2 + Z_1Z_2 has eigenvalue +1+1 on the three triplet states and −3-3 on the singlet, while SWAP has eigenvalue +1+1 on triplets and −1-1 on the singlet. Both are diagonal in the same basis, and comparing eigenvalues gives X1X2+Y1Y2+Z1Z2=2 SWAP−IX_1X_2 + Y_1Y_2 + Z_1Z_2 = 2\,\mathrm{SWAP} - I, i.e.

S1⋅S2=12 SWAP−14I.\mathbf S_1\cdot\mathbf S_2 = \tfrac12\,\mathrm{SWAP} - \tfrac14 I .

The propagator. Since SWAP2=I\mathrm{SWAP}^2 = I, for any real ϕ\phi, e−iϕ SWAP=cos⁡ϕ I−isin⁡ϕ SWAPe^{-i\phi\,\mathrm{SWAP}} = \cos\phi\, I - i\sin\phi\,\mathrm{SWAP}. Hence

U(θ)=eiθ/4 e−iθ2SWAP=eiθ/4(cos⁡θ2 I−isin⁡θ2 SWAP).U(\theta) = e^{i\theta/4}\, e^{-i\frac\theta2\mathrm{SWAP}} = e^{i\theta/4}\Big(\cos\tfrac\theta2\, I - i\sin\tfrac\theta2\, \mathrm{SWAP}\Big).

At θ=π\theta = \pi this is −ieiπ/4SWAP-i e^{i\pi/4}\mathrm{SWAP}. At θ=π/2\theta = \pi/2 it is eiπ/8(I−i SWAP)/2e^{i\pi/8}(I - i\,\mathrm{SWAP})/\sqrt2, whose square is eiπ/4(I−2i SWAP−I)/2=−ieiπ/4SWAPe^{i\pi/4}(I - 2i\,\mathrm{SWAP} - I)/2 = -i e^{i\pi/4}\mathrm{SWAP}, so it is a square root of SWAP up to phase. It is entangling: applied to ∣01⟩\ket{01} it gives eiπ/8(∣01⟩−i∣10⟩)/2e^{i\pi/8}(\ket{01} - i\ket{10})/\sqrt2.

The CZ construction. Use eiπS1z=eiπZ1/2=iZ1e^{i\pi S_{1z}} = e^{i\pi Z_1/2} = i Z_1 and drop global phases. The core is

M=(I−i SWAP) Z1 (I−i SWAP)=Z1−i(SWAP Z1+Z1 SWAP)−SWAP Z1 SWAP.M = (I - i\,\mathrm{SWAP})\, Z_1\, (I - i\,\mathrm{SWAP}) = Z_1 - i(\mathrm{SWAP}\,Z_1 + Z_1\,\mathrm{SWAP}) - \mathrm{SWAP}\,Z_1\,\mathrm{SWAP} .

With SWAP Z1 SWAP=Z2\mathrm{SWAP}\,Z_1\,\mathrm{SWAP} = Z_2 and SWAP Z1=Z2 SWAP\mathrm{SWAP}\,Z_1 = Z_2\,\mathrm{SWAP}, M=Z1−Z2−i(Z1+Z2) SWAPM = Z_1 - Z_2 - i(Z_1 + Z_2)\,\mathrm{SWAP}. On basis states (ZjZ_j has eigenvalue +1+1 on ∣0⟩\ket 0): M∣00⟩=−2i∣00⟩M\ket{00} = -2i\ket{00}, M∣01⟩=2∣01⟩M\ket{01} = 2\ket{01}, M∣10⟩=−2∣10⟩M\ket{10} = -2\ket{10}, M∣11⟩=2i∣11⟩M\ket{11} = 2i\ket{11}, the SWAP term vanishing on ∣01⟩\ket{01} and ∣10⟩\ket{10} because Z1+Z2=0Z_1 + Z_2 = 0 there. So U(π2) iZ1 U(π2)∝i2M=diag⁡(1,i,−i,−1)U(\tfrac\pi2)\, iZ_1\, U(\tfrac\pi2) \propto \tfrac{i}{2}M = \operatorname{diag}(1, i, -i, -1). Finally e−iπ2S1ze+iπ2S2z=e−iπZ1/4eiπZ2/4e^{-i\frac\pi2 S_{1z}} e^{+i\frac\pi2 S_{2z}} = e^{-i\pi Z_1/4} e^{i\pi Z_2/4} multiplies ∣z1z2⟩\ket{z_1 z_2} (with zj=±1z_j = \pm1) by e−iπ(z1−z2)/4e^{-i\pi(z_1 - z_2)/4}, i.e. by (1,−i,i,1)(1, -i, i, 1). The product is diag⁡(1,1,1,−1)\operatorname{diag}(1, 1, 1, -1), the CZ gate. The same result was confirmed numerically by multiplying the 4×44 \times 4 matrices.

Builds on

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Daniel Loss, David P. DiVincenzo (1998). Quantum computation with quantum dots. Physical Review A 57, 120-126. doi:10.1103/PhysRevA.57.120

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. 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

  1. 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).