Бөлісу құралы:


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