Condividi tramite


Operazione IncByL

Nome completo: Std.Arithmetic.IncByL

operation IncByL(c : BigInt, ys : Qubit[]) : Unit is Adj + Ctl

Sommario

Incrementa un registro little-endian ys per un numero BigInt c

Descrizione

Calcola ys += c modulo 2ⁿ, dove ys è un registro little-endian, Length(ys) = n > 0, c è un numero BigInt, 0 ≤ c < 2ⁿ. NOTA: usare IncByLUsingIncByLE direttamente se la scelta dell'implementazione è importante.