Partilhar via


Operação ApplyIfEqualL

Nome totalmente qualificado: Std.Arithmetic.ApplyIfEqualL

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

Resumo

Calcula if (c == x) { action(target) }, ou seja, aplica-se action a target se um valor BigInt c é igual ao registro de qubit little-endian x