Compartir a través de


Operación ApplyIfEqualLE

Nombre completo: Std.Arithmetic.ApplyIfEqualLE

operation ApplyIfEqualLE<'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 igual al registro y. Ambos registros de cúbits deben tener un formato little-endian.