Freigeben über


IncByI-Vorgang

Vollqualifizierter Name: Std.Arithmetic.IncByI

operation IncByI(c : Int, ys : Qubit[]) : Unit is Adj + Ctl

Zusammenfassung

Erhöht ein kleines endisches Register ys um eine ganze Zahl c

BESCHREIBUNG

Berechnet ys += c modulo 2ⁿ, wobei ys ein kleines endisches Register ist, Length(ys) = n > 0, c ist eine Int-Zahl, 0 ≤ c < 2ⁿ. HINWEIS: Verwenden Sie IncByIUsingIncByLE direkt, wenn die Auswahl der Implementierung wichtig ist.