Delen via


ApplyIfLessOrEqualL-bewerking

Volledig gekwalificeerde naam: Std.Arithmetic.ApplyIfLessOrEqualL

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

Samenvatting

Berekent if (c <= x) { action(target) }, dat wil gezegd, action op target als een BigInt-waarde c kleiner of gelijk is aan de bit-endian-qubitregister x