Condividi tramite


Operazione ApplyIfLessOrEqualLE

Nome completo: Std.Arithmetic.ApplyIfLessOrEqualLE

operation ApplyIfLessOrEqualLE<'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, si applica action a target se il registro x è minore o uguale al registro y. Entrambi i registri qubit devono essere in un formato little-endian.