Condividi tramite


Operazione ApplyIfGreaterL

Nome completo: Std.Arithmetic.ApplyIfGreaterL

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

Sommario

Calcola if (c > x) { action(target) }, vale a dire, applica action a target se un valore BigInt c è maggiore del registro qubit little-endian x