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


Операция ApplyIfGreaterOrEqualL

Полное имя: Std.Arithmetic.ApplyIfGreaterOrEqualL

operation ApplyIfGreaterOrEqualL<'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