cirq_rigetti.quil_input.cphase00

Returns a Cirq TwoQubitDiagonalGate for pyQuil's CPHASE00 gate.

In pyQuil, CPHASE00(phi) = diag([exp(1j * phi), 1, 1, 1]), and in Cirq, a TwoQubitDiagonalGate is specified by its diagonal in radians, which would be [phi, 0, 0, 0].

phi Gate parameter (in radians).

A TwoQubitDiagonalGate equivalent to a CPHASE00 gate of given angle.