cy

guppylang.std.quantum.cy(control: qubit, target: qubit) None[source]

Controlled-Y gate command.

cy(control, target)

Qubit ordering: [control, target]

\[\begin{split}\mathrm{CY}= \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & -i \\ 0 & 0 & i & 0 \end{pmatrix}\end{split}\]