다음을 통해 공유


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미만이면 targetxy적용됩니다. 두 큐비트 레지스터는 모두 little-endian 형식이어야 합니다.