H-Vorgang

Warnung

Diese Dokumentation bezieht sich auf das klassische QDK, das durch das moderne QDK ersetzt wurde.

Weitere Informationen finden https://aka.ms/qdk.api Sie in der API-Dokumentation für das moderne QDK.

Namespace: Microsoft.Quantum.Intrinsic

Paket: Microsoft.Quantum.Type2.Core

Wendet die Hadamard-Transformation auf ein einzelnes Qubit an.

operation H (qubit : Qubit) : Unit is Adj + Ctl

BESCHREIBUNG

\begin{align} H \mathrel{:=} \frac{1}{\sqrt{2}} \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}. \end{align}

Eingabe

Qubit: Qubit

Qubit, auf das das Gate angewendet werden soll.

Ausgabe : Einheit