Quil-T
API Reference
pyquil.gates.
Z
Produces the Z gate:
Z = [[1, 0], [0, -1]]
This gate is a single qubit Z-gate.
qubit (Union[Qubit, QubitPlaceholder, FormalArgument, int]) – The qubit apply the gate to.
Union
Qubit
QubitPlaceholder
FormalArgument
int
Gate
A Gate object.