次の方法で共有


ApplyIfGreaterL 操作

完全修飾名: Std.Arithmetic.ApplyIfGreaterL

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

概要

BigInt 値 if (c > x) { action(target) } がリトル エンディアン量子ビット レジスタ action より大きい場合、targetを計算し、cx に適用します