Compartir a través de


Operación ApplyIfLessOrEqualL

Nombre completo: Std.Arithmetic.ApplyIfLessOrEqualL

operation ApplyIfLessOrEqualL<'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 o igual que el registro de cúbits little-endian x