cirq_rigetti.quil_input.cphase10

Returns a Cirq TwoQubitDiagonalGate for pyQuil's CPHASE10 gate.

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

phi Gate parameter (in radians).

A TwoQubitDiagonalGate equivalent to a CPHASE10 gate of given angle.