![]() |
Returns a single-qubit phase gate as a Cirq ZPowGate with exponent determined by the input param.
cirq_rigetti.quil_input.phase(
param: float
) -> ZPowGate
The angle parameter of pyQuil's PHASE gate and the exponent of Cirq's ZPowGate differ by a factor of pi.
Args | |
---|---|
param
|
Gate parameter (in radians). |
Returns | |
---|---|
A ZPowGate equivalent to a PHASE gate of given angle. |