Dela via


ApplyIfLessL-åtgärd

Fullständigt kvalificerat namn: Std.Arithmetic.ApplyIfLessL

operation ApplyIfLessL<'T>(action : ('T => Unit is Adj + Ctl), c : BigInt, x : 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 mindre än det lilla kvantbitsregistret x