Dela via


ApplyIfEqualLE-åtgärd

Fullständigt kvalificerat namn: Std.Arithmetic.ApplyIfEqualLE

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

Sammanfattning

Computes if x == y { action(target) }, d.v.s. gäller action för target om registreringen x är lika med registret y. Båda qubit-registren bör vara i lite endianskt format.