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


Операция ApplyIfEqualL

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

operation ApplyIfEqualL<'T>(action : ('T => Unit is Adj + Ctl), c : BigInt, xs : Qubit[], target : 'T) : Unit is Adj + Ctl

Сводка

Вычисляет if (c == x) { action(target) }, то есть применяется action к target, если значение BigInt c равно маленькому регистру кубита x