Quil-T
API Reference
pyquil.gates.
PHASE
Produces the PHASE gate:
PHASE(phi) = [[1, 0], [0, exp(1j * phi)]]
This is the same as the RZ gate.
angle (Union[Expression, MemoryReference, int64, int, float, complex]) – The angle to rotate around the z-axis on the bloch sphere.
Union
Expression
MemoryReference
int64
int
float
complex
qubit (Union[Qubit, QubitPlaceholder, FormalArgument, int]) – The qubit apply the gate to.
Qubit
QubitPlaceholder
FormalArgument
Gate
A Gate object.