Condividi tramite


Operazione IncByLUsingIncByLE

Nome completo: Std.Arithmetic.IncByLUsingIncByLE

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

Sommario

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

Descrizione

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