Sign in
← Atlas
Exact & formalGatesTwo-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.

iswaptwo qubithardware nativexy interaction

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

iSWAP matters because it is often what the hardware gives you for free: an always-on or easily-pulsed XY coupling between two qubits generates iSWAP (or a family member) directly, making it a common native two-qubit gate rather than something compiled from CNOT.

Circuit & simulation
|01⟩ → i|10⟩100%
|00⟩, |11⟩ unchanged100%
What this takes and returns
Takes2 qubitsWhat joins here

Takes a 2-qubit register and states no assumption about what is on it. That is the whole condition: anything returning 2 qubits can feed it.

16 entries meet this end. Named below.

Returns2 qubitsWhat joins here

Returns a 2-qubit register a next stage can take. This is the end that joins.

11 entries meet this end. Named below.

A unitary. The same register goes in and comes out, and this entry states no assumption about what is on it — which is what lets anything of the same width feed it. See all 29 →

How it works

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

iSWAP00=00,iSWAP01=i10,iSWAP10=i01,iSWAP11=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: iSWAP01+102=i01+102\mathrm{iSWAP}\,\tfrac{|01\rangle+|10\rangle}{\sqrt2} = i\,\tfrac{|01\rangle+|10\rangle}{\sqrt2} (an eigenstate, only a phase), but iSWAP01+112=i10+112\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(XX+YY))\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=SWAPCZ\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.
Implementation
Native
iswap.qasm
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
x q[0];
iswap q[0], q[1];
Quantum vs classical

Classical baseline

Use a classical state-vector or matrix simulation at the same width, precision, and measurement objective.

Quantum claim

The quantum record demonstrates a state or operator behavior; it does not make classical simulation or communication costs disappear.

How to compare

Compare fidelity, samples, gate depth, noise, memory, and the cost of preparing and reading the state.

Declared gaps

Nobody has reviewed this record for gaps yet.

Literature & references
Natural two-qubit gate for quantum computation using the XY interaction2002 · Norbert Schuch, Jens Siewert

Analyzes the iSWAP-family gate that arises naturally from an XY-type two-qubit interaction, the physical basis gate on several superconducting platforms.

arxiv.org/abs/quant-ph/0209035
Quantum Computation and Quantum Information: 10th Anniversary Edition2010 · Michael A. Nielsen and Isaac L. Chuang

Standard reference for single- and multi-qubit gate matrices, Euler-angle decomposition, and universal gate sets.

doi.org/10.1017/cbo9780511976667