# 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
Return type

Gate

Returns

A Gate object.