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