Sdílet prostřednictvím


Operace ApplyIfGreaterL

Plně kvalifikovaný název: Std.Aritmetic.ApplyIfGreaterL

operation ApplyIfGreaterL<'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ší než x registru qubitů s malým endianem.