Compartir a través de


Operación ApplyIfGreaterOrEqualL

Nombre completo: Std.Arithmetic.ApplyIfGreaterOrEqualL

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