Sdílet prostřednictvím


Operace ApplyIfLessOrEqualL

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

operation ApplyIfLessOrEqualL<'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ší nebo rovna registru qubitů s malým endianem x