T

pyquil.gates.T(qubit)[source]

Produces the T gate:

T = [[1, 0],
     [0, exp(1j * pi / 4)]]

This gate is a single qubit T-gate. It is the same as RZ(pi/4).

Parameters:qubit – The qubit apply the gate to.
Returns:A Gate object.