cz

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

Controlled-Z gate command.

cz(control, target)

Qubit ordering: [control, target]

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