ch

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

Controlled-H gate command.

ch(control, target)

Qubit ordering: [control, target]

\[\begin{split}\mathrm{CH} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} \\ 0 & 0 & \frac{1}{\sqrt{2}} & -\frac{1}{\sqrt{2}} \end{pmatrix}\end{split}\]