Y

pyquil.gates.Y(qubit)[source]

Produces the Y gate:

Y = [[0, 0 - 1j],
     [0 + 1j, 0]]

This gate is a single qubit Y-gate.

Parameters

qubit (Union[Qubit, QubitPlaceholder, FormalArgument, int]) – The qubit apply the gate to.

Return type

Gate

Returns

A Gate object.