Condividi tramite


Operazione ApplyIfEqualL

Nome completo: Std.Arithmetic.ApplyIfEqualL

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

Sommario

Calcola if (c == x) { action(target) }, vale a dire, applica action a target se un valore BigInt c è uguale al registro qubit little-endian x