Partilhar via


Operação ApplyIfLessL

Nome totalmente qualificado: Std.Arithmetic.ApplyIfLessL

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

Resumo

Calcula if (c < x) { action(target) }, ou seja, aplica-se action a target se um valor BigInt c for menor do que o registro de qubit little-endian x