共用方式為


ApplyIfGreaterLE 作業

完整名稱:Std.Arithmetic.ApplyIfGreaterLE

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

總結

計算 if x > y { action(target) },也就是說,如果緩存器 action 大於緩存器 target,則會套用 xy。 這兩個量子位緩存器都應該以小到小格式。