Quil-T
API Reference
pyquil.gates.
RX
Produces the RX gate:
RX(phi) = [[cos(phi / 2), -1j * sin(phi / 2)], [-1j * sin(phi / 2), cos(phi / 2)]]
This gate is a single qubit X-rotation.
angle (Union[Expression, MemoryReference, int64, int, float, complex]) – The angle to rotate around the x-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.