← Atlas

Gates · Two-qubit gate

iSWAP gate

A two-qubit gate that swaps |01⟩ and |10⟩ while attaching a factor of i, arising naturally from XY-type physical couplings and native to several superconducting and photonic platforms.

Exact & formalUpdated

View frozen graph

q[0]q[1]Step 1 of 1 · iSWAP · on q[0], q[1]iSWAP

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

Expected outcomes

  • |01⟩ → i|10⟩100%
  • |00⟩, |11⟩ unchanged100%
  • Steps1
  • Wires2
  • Qubits2
  • Depth1 gate
  • Generatorexp(iπ/4 (XX+YY))
  • Papers2

Definition

iSWAP=(100000i00i000001)\mathrm{iSWAP} = \begin{pmatrix} 1&0&0&0\\0&0&i&0\\0&i&0&0\\0&0&0&1 \end{pmatrix}

in the {∣00⟩,∣01⟩,∣10⟩,∣11⟩}\{|00\rangle,|01\rangle,|10\rangle,|11\rangle\} basis — a SWAP gate with an extra factor of ii attached to the states it actually exchanges.

Action on basis states

iSWAP∣00⟩=∣00⟩,iSWAP∣01⟩=i∣10⟩,iSWAP∣10⟩=i∣01⟩,iSWAP∣11⟩=∣11⟩\mathrm{iSWAP}|00\rangle = |00\rangle,\quad \mathrm{iSWAP}|01\rangle = i|10\rangle,\quad \mathrm{iSWAP}|10\rangle = i|01\rangle,\quad \mathrm{iSWAP}|11\rangle = |11\rangle

Unlike plain SWAP, iSWAP entangles superposition inputs: iSWAP ∣01⟩+∣10⟩2=i ∣01⟩+∣10⟩2\mathrm{iSWAP}\,\tfrac{|01\rangle+|10\rangle}{\sqrt2} = i\,\tfrac{|01\rangle+|10\rangle}{\sqrt2} (an eigenstate, only a phase), but iSWAP ∣01⟩+∣11⟩2=i∣10⟩+∣11⟩2\mathrm{iSWAP}\,\tfrac{|01\rangle+|11\rangle}{\sqrt2} = \tfrac{i|10\rangle+|11\rangle}{\sqrt2}, which is entangled even though the input was a product state.

Physical origin

iSWAP\mathrm{iSWAP} is exactly the time evolution generated by the isotropic XYXY exchange interaction:

iSWAP=exp⁡ ⁣(iπ4(X⊗X+Y⊗Y))\mathrm{iSWAP} = \exp\!\Big(i\frac{\pi}{4}(X\otimes X + Y\otimes Y)\Big)

Schuch and Siewert (2003) analyze this family of gates and show that, unlike an Ising (ZZZZ) coupling which needs single-qubit gates to reach a CNOT-equivalent, the XYXY interaction alone already yields an entangling gate — but reaching full CNOT-equivalence still needs single-qubit rotations layered around it, since iSWAP\mathrm{iSWAP} and CNOT\mathrm{CNOT} are only locally equivalent, not identical.

Key identities

  • iSWAP2=− SWAP\mathrm{iSWAP}^2 = -\,\mathrm{SWAP}: two iSWAPs give minus the ordinary swap (the two accumulated factors of ii multiply to −1-1).
  • iSWAP=SWAP⋅CZ\mathrm{iSWAP} = \mathrm{SWAP}\cdot \mathrm{CZ}-like phase structure: iSWAP and CNOT are related by a "magic basis" change and are both maximally entangling, but not identical — a iSWAP\sqrt{\mathrm{iSWAP}} combined with single-qubit gates is itself sometimes used as a native entangling gate on hardware where a full iSWAP pulse is harder to calibrate than a half-angle one.

References

Exact & formal
  • Unitary / matrix equivalence
  • Direct mathematics
  • Peer-reviewed paper
Method
Compare the iSWAP matrix against exp(iπ(XX+YY)/4) and apply it to the four computational-basis states to check the exchange-with-phase pattern.
Result
Pass · iSWAP|01⟩ = i|10⟩, iSWAP|10⟩ = i|01⟩, and |00⟩, |11⟩ are fixed, matching the closed-form XY-interaction evolution exactly.
OpenQASM 3 standard gate set ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
iswaptwo qubithardware nativexy interaction

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