Condividi tramite


Operazione ApplyIfGreaterOrEqualL

Nome completo: Std.Arithmetic.ApplyIfGreaterOrEqualL

operation ApplyIfGreaterOrEqualL<'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 o uguale al registro qubit little-endian x