Sdílet prostřednictvím


Operace ApplyIfGreaterOrEqualL

Plně kvalifikovaný název: Std.Arithmetic.ApplyIfGreaterOrEqualL

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

Shrnutí

Vypočítá if (c >= x) { action(target) }, to znamená, použije action na target, pokud je c hodnota BigInt větší nebo rovna registru qubitů s malým endianem x