次の方法で共有


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 より小さい場合に、cx に適用します