S-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 π/4-Phasengate auf ein einzelnes Qubit an.

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

BESCHREIBUNG

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

Eingabe

Qubit: Qubit

Qubit, auf das das Gate angewendet werden soll.

Ausgabe: Einheit