Condividi tramite


Operazione IncByLE

Nome completo: Std.Arithmetic.IncByLE

operation IncByLE(xs : Qubit[], ys : Qubit[]) : Unit is Adj + Ctl

Sommario

Incrementa un registro little-endian ys di un registro little-endian xs

Descrizione

Calcola ys += xs modulo 2ⁿ, dove xs e ys sono registri little-endian e Length(xs) ≤ Length(ys) = n. NOTA: usare operazioni come RippleCarryCGIncByLE direttamente se la scelta dell'implementazione è importante.