Partager via


Opération IncByIUsingIncByLE

Nom complet : Std.Arithmetic.IncByIUsingIncByLE

operation IncByIUsingIncByLE(adder : ((Qubit[], Qubit[]) => Unit is Adj + Ctl), c : Int, ys : Qubit[]) : Unit is Adj + Ctl

Résumé

Incrémente un registre ys little-endian par un nombre Int c à l’aide d’un adder fourni.

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