S

pyquil.gates.S(qubit)[source]

Produces the S gate:

S = [[1, 0],
     [0, 1j]]

This gate is a single qubit S-gate.

Parameters:qubit (Union[Qubit, QubitPlaceholder, int]) – The qubit apply the gate to.
Return type:Gate
Returns:A Gate object.