Condividi tramite


Operazione IncByIUsingIncByLE

Nome completo: Std.Arithmetic.IncByIUsingIncByLE

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

Sommario

Incrementa un registro little-endian ys per un numero Int c usando l'adder fornito.

Descrizione

Calcola ys += c modulo 2ⁿ, dove ys è un registro little-endian Length(ys) = n > 0, c è un numero Int, 0 ≤ c < 2ⁿ.