Compartir a través de


Operación ApplyIfEqualL

Nombre completo: Std.Arithmetic.ApplyIfEqualL

operation ApplyIfEqualL<'T>(action : ('T => Unit is Adj + Ctl), c : BigInt, xs : 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 igual al registro de cúbits little-endian x