Condividi tramite


Operazione ApplyIfLessL

Nome completo: Std.Arithmetic.ApplyIfLessL

operation ApplyIfLessL<'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 del registro qubit little-endian x