Condividi tramite


Operazione ApplyIfLessLE

Nome completo: Std.Arithmetic.ApplyIfLessLE

operation ApplyIfLessLE<'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 è minore del registro y. Entrambi i registri qubit devono essere in un formato little-endian.