X-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 das Pauli-$X$-Gate an.

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

BESCHREIBUNG

\begin{align} \sigma_x \mathrel{:=} \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}. \end{align}

Eingabe

Qubit: Qubit

Qubit, auf das das Gate angewendet werden soll.

Ausgabe: Einheit