Delen via


ApplyIfEqualLE-bewerking

Volledig gekwalificeerde naam: Std.Arithmetic.ApplyIfEqualLE

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

Samenvatting

Berekeningen if x == y { action(target) }, dat wil gezegd, worden action toegepast op target als x gelijk is aan het register y. Beide qubitregisters moeten een little-endian-indeling hebben.