quantum gate directory
iSWAP
Symbol
$i\mathrm{SWAP}$
Description:
Swaps $|01\rangle$ and $|10\rangle$ and adds a phase of $i$.
SDK Support
| SDK | Name |
|---|---|
| Qiskit |
qiskit.circuit.library.iSwapGate
|
| PennyLane |
pennylane.ISWAP
|
| Cirq |
cirq.ISWAP
|
| Q# | — |
| PyQuil | — |
| Braket | — |
| BQSKit | — |
The iSWAP gate exchanges the $|01\rangle$ and $|10\rangle$ states with a phase $i$, leaving $|00\rangle$ and $|11\rangle$ unchanged.
$$i\mathrm{SWAP} = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & i & 0 \\ 0 & i & 0 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}$$
Properties
- Entangling and generated by an $XY$ interaction.
- $i\mathrm{SWAP}^2 = Z \otimes Z$.
- Symmetric under exchange of the two qubits.
Usage
- Native to hardware with exchange or $XY$ coupling.
- Used for excitation transfer and as a building block for CNOT with single-qubit rotations.
Back to home