Bagikan melalui


Operasi ApplyIfGreaterL

Nama yang sepenuhnya memenuhi syarat: Std.Arithmetic.ApplyIfGreaterL

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

Ringkasan

Komputasi if (c > x) { action(target) }, yaitu, berlaku action untuk target jika nilai BigInt c lebih besar dari register qubit little-endian x