View source on GitHub |
Returns a cphase gate with phase of rad
radians.
cirq.cphase(
rads: cirq.TParamVal
) -> cirq.CZPowGate
Returns a gate with the unitary matrix:
\[ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & e^{i rads} \\ \end{bmatrix} \]