Operação HH operation
Espaço de nome: Microsoft.Quantum.IntrínsecoNamespace: Microsoft.Quantum.Intrinsic
Pacote: Microsoft.Quantum.QSharp.CorePackage: Microsoft.Quantum.QSharp.Core
Aplica a transformação hadamard a um único qubit.Applies the Hadamard transformation to a single qubit.
\start{align} H \mathrel{:=} \frac {1} {\sqrt {2} } \start{bmatrix} 1 & \ \ 1 1 & -1 \end{bmatrix}.\begin{align} H \mathrel{:=} \frac{1}{\sqrt{2}} \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}. \end{align}\end{align}
operation H (qubit : Qubit) : Unit is Adj + Ctl
EntradaInput
qubit : Qubitqubit : Qubit
Qubit ao qual o portão deve ser aplicado.Qubit to which the gate should be applied.