次の方法で共有


ApplyIfLessOrEqualL 操作

完全修飾名: Std.Arithmetic.ApplyIfLessOrEqualL

operation ApplyIfLessOrEqualL<'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 以下の場合に、cx に適用します。