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} = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 1 \\ 0 & 0 & 1 & -1 \end{pmatrix}\end{split}\]