共用方式為


IncByLUsingIncByLE 作業

完整名稱:Std.Arithmetic.IncByLUsingIncByLE

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

總結

使用提供的載入巨集,以 BigInt 數位 c 遞增小端緩存器 ys。

說明

Computes ys += c modulo 2ⁿ,其中 ys 是一個小端緩存器 Length(ys) = n > 0,c 是 BigInt 數位,0 ≤ c < 2ⁿ。