Condividi tramite


Operazione ApplyIfLessOrEqualL

Nome completo: Std.Arithmetic.ApplyIfLessOrEqualL

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