Sdílet prostřednictvím


ApplyIfEqualL – operace

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

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

Shrnutí

Vypočítá if (c == x) { action(target) }, to znamená, použije action na target, pokud se hodnota BigInt c rovná x registru qubitů s malým endianem.