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 (Union[Qubit, QubitPlaceholder, int]) – The qubit apply the gate to.

Return type

Gate

Returns

A Gate object.