共用方式為


ApplyIfLessLE 作業

完整名稱:Std.Arithmetic.ApplyIfLessLE

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

總結

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