Sdílet prostřednictvím


Operace ApplyIfLessL

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

operation ApplyIfLessL<'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 hodnota BigInt c je menší než x registru qubitů s malým endianem.