quantum gate directory
iSWAP
Symbol
$i\mathrm{SWAP}$
Qubits: $2$
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 |
pyquil.gates.ISWAP
|
| Braket |
braket.circuits.gates.ISwap
|
| BQSKit |
bqskit.ir.gates.ISwapGate
|
| Qibo |
qibo.gates.iSWAP
|
| pytket |
pytket.circuit.OpType.ISWAPMax
ⓘ
|
| Stim |
ISWAP
|
| OpenQASM | — |
Groups
This gate is contained in the following groups:
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