Compartir a través de


Operación ApplyIfGreaterLE

Nombre completo: Std.Arithmetic.ApplyIfGreaterLE

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

Resumen

Calcula if x > y { action(target) }, es decir, se aplica action a target si el registro x es mayor que el registro y. Ambos registros de cúbits deben tener un formato little-endian.