crz¶
- guppylang.std.quantum.crz(control: qubit, target: qubit, angle: angle) None [source]¶
Controlled-Rz gate command.
crz(control, target, theta)
Qubit ordering: [control, target]
\[\begin{split}\mathrm{CRz}(\theta)= \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & e^{-\frac{1}{2}i \theta} & 0 \\ 0 & 0 & 0 & e^{\frac{1}{2}i \theta} \end{pmatrix}\end{split}\]