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