다음을 통해 공유


IncByI 작업

정규화된 이름: Std.Arithmetic.IncByI

operation IncByI(c : Int, ys : Qubit[]) : Unit is Adj + Ctl

요약

little-endian register ys를 정수 c로 증분합니다.

설명

Computes ys += c modulo 2, 여기서 ys는 little-endian register, Length(ys) = n > 0, c는 Int number, 0 ≤ c < 2입니다. 참고: 구현 선택이 중요한 경우 IncByIUsingIncByLE을 직접 사용합니다.