Quil-T
API Reference
pyquil.gates.
ISWAP
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.
q1 (Union[Qubit, QubitPlaceholder, FormalArgument, int]) – Qubit 1.
Union
Qubit
QubitPlaceholder
FormalArgument
int
q2 (Union[Qubit, QubitPlaceholder, FormalArgument, int]) – Qubit 2.
Gate
A Gate object.