Partager via


Opération IncByI

Nom complet : Std.Arithmetic.IncByI

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

Résumé

Incrémente un registre ys little-endian par un nombre entier c

Descriptif

Calcule ys += c modulo 2ⁿ, où ys est un registre little-endian, Length(ys) = n > 0, c est un nombre int, 0 ≤ c < 2ⁿ. REMARQUE : Utilisez IncByIUsingIncByLE directement si le choix de l’implémentation est important.