Partilhar via


Operação ApplyIfLessLE

Nome totalmente qualificado: Std.Arithmetic.ApplyIfLessLE

operation ApplyIfLessLE<'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 o registro x for menor que o registro y. Ambos os registros de qubit devem estar em um formato little-endian.