I know that I can just use the $RZ$ gate to replace the $PH$ phase gate. But I need a way to implement the controlled phase gate $C-PH$ this cannot just be replaced with a $CRZ$ gate.
1 Answer
cirq.ZPowGate(exponent=t/pi).controlled_by(control_qubit).on(target_qubit)
or equivalently
cirq.CZ(control_qubit, target_qubit)**(t / pi)
cirq.ops.common_gates.Rz
. I didn't find any way to do a phase gate on google cirq, so I just replaced all of my phase gates into $RZ$ gates. Now that I have controlled phase gates, I don't know how to implement that on google cirq because even though an RZ does the same as a Phase gate, the controlled version don't, because the controlled version of a gate does change with global phase shifts. $\endgroup$