mindquantum.core.gates.HGate

View Source On Gitee
class mindquantum.core.gates.HGate[source]

Hadamard gate.

Hadamard gate with matrix as:

\[\begin{split}{\rm H}=\frac{1}{\sqrt{2}}\begin{pmatrix}1&1\\1&-1\end{pmatrix}\end{split}\]

More usage, please see XGate.

get_cpp_obj()[source]

Construct cpp obj.