Condividi tramite


Operazione ApplyIfGreaterLE

Nome completo: Std.Arithmetic.ApplyIfGreaterLE

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

Sommario

Calcola if x > y { action(target) }, vale a dire, applica action a target se il registro x è maggiore del registro y. Entrambi i registri qubit devono essere in un formato little-endian.