共用方式為


ApplyIfLessL 作業

完整名稱:Std.Arithmetic.ApplyIfLessL

operation ApplyIfLessL<'T>(action : ('T => Unit is Adj + Ctl), c : BigInt, x : Qubit[], target : 'T) : Unit is Adj + Ctl

總結

計算 if (c < x) { action(target) },也就是說,如果 BigInt 值 action 小於小端量子位緩存器 target,則會將 c 套用至 x