# ISWAP¶

pyquil.gates.ISWAP(q1, q2)[source]

Produces an ISWAP gate:

ISWAP = [[1, 0,  0,  0],
[0, 0,  1j, 0],
[0, 1j, 0,  0],
[0, 0,  0,  1]]


This gate swaps the state of two qubits, applying a -i phase to q1 when it is in the 1 state and a -i phase to q2 when it is in the 0 state.

Parameters: q1 – Qubit 1. q2 – Qubit 2. A Gate object.