Поделиться через


Операция 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) }, то есть применяет action к target, если значение BigInt c меньше, чем маленький регистр кубита x