Compartir a través de


Operación ApplyIfLessL

Nombre completo: Std.Arithmetic.ApplyIfLessL

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

Resumen

Calcula if (c < x) { action(target) }, es decir, se aplica action a target si un valor BigInt c es menor que el registro de cúbits little-endian x