iSWAP gate

On this page 7

The iSWAP gate is a two-qubit entangling gate that swaps the basis states |01⟩ and |10⟩ and multiplies each swapped amplitude by the imaginary unit i, while leaving |00⟩ and |11⟩ unchanged. In quantum computing, and specifically within the study of quantum gates & circuits, it matters because it arises directly from the exchange interaction between coupled qubits, which makes it a native gate on many superconducting processors.

Unlike the plain SWAP gate, which only relocates quantum information, the iSWAP gate creates entanglement. Together with arbitrary single-qubit rotations it forms a universal gate set, so any quantum circuit can in principle be compiled into iSWAP gates and one-qubit operations.

How the iSWAP gate acts on two qubits

The iSWAP gate is defined by a 4 × 4 unitary matrix that acts only inside the subspace spanned by |01⟩ and |10⟩. Within that subspace it behaves like a SWAP with an extra phase of i on both off-diagonal entries, so a single excitation hops coherently from one qubit to the other.

The following table lists the action of the gate on each computational basis state.

Input stateOutput stateEffect
|00⟩|00⟩Unchanged
|01⟩i|10⟩Swapped with phase i
|10⟩i|01⟩Swapped with phase i
|11⟩|11⟩Unchanged
Action of iSWAP on the computational basis

Mathematically, iSWAP equals exp(iπ/4 · (XX + YY)), the time evolution under an XY exchange Hamiltonian for a fixed duration. Its eigenvalues are 1, 1, i and −i, and applying it twice yields Z ⊗ Z, so four applications return the identity. A useful identity expresses iSWAP as a SWAP followed by a controlled-Z with phase gates on both qubits, which explains why it is both a routing primitive and an entangling primitive.

Physical origin in superconducting hardware

The iSWAP gate is popular because it is what coupled qubits do naturally. When two transmon qubits share a capacitive or tunable coupler and their transition frequencies are brought into resonance, a single excitation oscillates between them. Stopping the interaction after exactly half of one full exchange cycle implements iSWAP; stopping after a quarter cycle produces the square root of iSWAP.

Hardware teams tune several parameters to reach high fidelity. The table below summarizes the most important ones and what they control.

ParameterTypical rangeWhat it affects
Coupling strength g5-50 MHzGate speed
Gate duration10-100 nsExposure to decoherence
Detuning during idleHundreds of MHzResidual crosstalk
Conditional phase errorNear zero when tunedLeakage into a CZ-like phase
Two-qubit fidelityAbout 99.0-99.9%Circuit depth that is usable
Key parameters of a physical iSWAP implementation

A frequent complication is a parasitic conditional phase caused by the higher energy levels of transmons. Because of it, real devices often implement the more general fSim gate, which combines a swap angle and a conditional phase, and then calibrate both angles rather than assuming an ideal iSWAP.

iSWAP compared with other two-qubit gates

The iSWAP gate belongs to the family of perfect entanglers, alongside CNOT and controlled-Z, but it sits at a different point of the Weyl chamber, the geometric map of two-qubit gates up to local operations. As a result, converting between gate families has a measurable cost in gate count.

The comparison below shows how iSWAP relates to its closest neighbors in the topic.

GateCreates entanglementNative interactionEquivalent cost
iSWAPYesXY exchangeTwo CNOTs plus local gates
SWAP gateNoNone directlyThree CNOTs or three iSWAP-family gates
CNOT gateYesCross-resonanceTwo iSWAPs plus local gates
Controlled-Z gateYesZZ or flux-tunedTwo iSWAPs plus local gates
Square root of iSWAPYesHalf XY exchangeTwo needed for one CNOT
iSWAP versus related two-qubit gates

The key practical consequence is that a CNOT compiled onto iSWAP hardware costs two native two-qubit gates, and the reverse is also true. Compilers therefore try to keep circuits in the native gate set of the device rather than translating through CNOT.

Using iSWAP in circuit compilation

Compilers exploit iSWAP in two main ways. First, it moves information and entangles at once, which helps on chips with limited qubit connectivity where states must travel across the lattice. Second, the XY family of partial iSWAP rotations maps naturally onto physics and chemistry problems that conserve particle number, such as fermionic hopping terms.

The decision table below shows when an iSWAP-based approach is usually the better choice.

SituationRecommended choiceReason
Hardware with exchange couplingNative iSWAP or square root of iSWAPShortest and most accurate pulses
Simulating fermion hoppingPartial XY rotationsThey conserve excitation number
Heavy qubit routingiSWAP instead of SWAP plus CNOTFewer two-qubit operations
Algorithm written in CNOTsResynthesize with a compilerAvoid a naive two-for-one expansion
When to prefer iSWAP-family gates

Modern toolchains perform KAK decomposition of arbitrary two-qubit unitaries, which shows that any two-qubit gate needs at most three iSWAP-family gates. Many common blocks need only two, and a well-tuned compiler finds those shorter sequences automatically.

Limitations and common misconceptions

The iSWAP gate is not a free lunch, and several practical pitfalls affect how it is used in real circuits.

  • iSWAP is not a SWAP with a global phase. The phase i applies only to the swapped states, so it changes relative phases and generates entanglement.
  • Leakage to higher levels in transmons can occur during resonant exchange, especially when gates are made very fast.
  • Calibration drift in qubit frequencies shifts the swap angle, which leaves a partially swapped state instead of a full iSWAP.
  • Crosstalk with spectator qubits can appear when tuning frequencies brings a third qubit accidentally into resonance.
  • Error-corrected architectures such as the surface code are usually described with CNOT or controlled-Z, so iSWAP circuits require careful translation.

Understanding it simply

Picture two connected buckets, and only one of them holds a ball. The iSWAP gate moves the ball to the other bucket. It also gives the ball a small twist as it travels. If both buckets are empty or both are full, nothing changes.

That twist is what makes the gate useful. When a qubit is in a mix of states, the move and the twist link the two qubits together. This link is called entanglement. Quantum computers need it to outperform ordinary computers. Some chips perform this move naturally, so the iSWAP gate is cheap and fast on that hardware.

Applied in practice

A research team runs a chemistry simulation on a superconducting processor with tunable couplers between neighboring transmon qubits. The molecule model contains hopping terms in which an electron moves from one orbital to another, and each hop conserves the total number of electrons. The team maps each orbital to one qubit and implements each hop as a partial iSWAP rotation.

Compared with a version that compiles every hop into CNOT gates, the iSWAP-based circuit uses roughly half as many two-qubit gates. With a two-qubit fidelity near 99.5 percent, the shorter circuit keeps the accumulated error low enough that the estimated ground-state energy stays close to the exact classical reference, while the CNOT version drifts much further away.