Partilhar via


Operação ApplyIfLessOrEqualLE

Nome totalmente qualificado: Std.Arithmetic.ApplyIfLessOrEqualLE

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

Resumo

Calcula if x <= y { action(target) }, ou seja, aplica-se action a target se registrar x for menor ou igual ao registro y. Ambos os registros de qubit devem estar em um formato little-endian.