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


Операция ApplyIfGreaterL

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

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