Freigeben über


PlusC-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 Summe von zwei Eingaben zurück.

function PlusC (a : Microsoft.Quantum.Math.Complex, b : Microsoft.Quantum.Math.Complex) : Microsoft.Quantum.Math.Complex

Eingabe

a : Komplex

Die erste Eingabe $a$ zusammenzufassen.

b : Komplex

Die zweite Eingabe $b$, die summiert werden soll.

Ausgabe: Komplex

Die Summe $a + b$.