Dela via


ApplyIfLessOrEqualL-åtgärd

Fullständigt kvalificerat namn: Std.Arithmetic.ApplyIfLessOrEqualL

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

Sammanfattning

Beräkningar if (c <= x) { action(target) }, det vill s.k. gäller action för target om ett BigInt-värde c är mindre eller lika med det lilla kvantbitsregistret x