Computing Library › Quantum Logic Gates
Quantum Logic Gates
iSWAP Gate
The iSWAP swaps two qubits and adds an i phase — a natural entangling gate for superconducting and spin qubits.
Matrix
Unitary matrix
100000i00i000001
Circuit symbol
Action on basis states
| input | output |
|---|---|
| |01⟩ | i|10⟩ |
| |10⟩ | i|01⟩ |
How it works
iSWAP arises directly from the exchange (XX+YY) interaction that couples many physical qubits, so it is often the true native gate; √iSWAP plus single-qubit rotations is universal.
In code (Qiskit)
python
qc = QuantumCircuit(2)
qc.iswap(0, 1)
two-qubitnativeentangling