Dela via


ApplyIfEqualL-åtgärd

Fullständigt kvalificerat namn: Std.Arithmetic.ApplyIfEqualL

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

Sammanfattning

Computes if (c == x) { action(target) }, det vill s.k. gäller action för target om ett BigInt-värde c är lika med det lilla endianska qubitregistret x