Condividi tramite


Operazione ApplyIfEqualLE

Nome completo: Std.Arithmetic.ApplyIfEqualLE

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