Z

pyquil.gates.Z(qubit)[source]

Produces the Z gate:

Z = [[1,  0],
     [0, -1]]

This gate is a single qubit Z-gate.

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