Freigeben über


ArgComplex-Funktion

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.Math

Paket: Microsoft.Quantum.Standard

Gibt die Phase einer komplexen Zahl vom Typ Complexzurück.

function ArgComplex (input : Microsoft.Quantum.Math.Complex) : Double

Eingabe

Eingabe: Komplex

Komplexe Zahl $c = x + i y$.

Ausgabe: Double

Phase $\text{Arg}[c] = \text{ArcTan}(y,x) \in (-\pi,\pi]$.