Freigeben über


ApplyIfEqualLE-Vorgang

Vollqualifizierter Name: Std.Arithmeetic.ApplyIfEqualLE

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

Zusammenfassung

Berechnet if x == y { action(target) }, d. h. wendet action auf target an, wenn das Register x gleich dem Register yist. Beide Qubit-Register sollten in einem kleinen endischen Format vorliegen.