共用方式為


IncByIUsingIncByLE 作業

完整名稱:Std.Arithmetic.IncByIUsingIncByLE

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

總結

使用提供的附加元件,以 Int 數位 c 遞增小端緩存器 ys。

說明

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