다음을 통해 공유


Std.Arithmetic

Std.Arithmetic 네임스페이스에는 다음 항목이 포함됩니다.

이름 설명
AddLE 초기화된 little-endian register zs를 little-endian registers xs 및 ys의 합계로 설정합니다.
ApplyIfEqualL 즉, BigInt 값 c little-endian 큐비트 레지스터와 같은 경우 targetactionif (c == x) { action(target) }계산합니다x
ApplyIfEqualLE if x == y { action(target) }계산합니다. 즉, 레지스터 x 레지스터 y같은 경우 targetaction 적용됩니다. 두 큐비트 레지스터는 모두 little-endian 형식이어야 합니다.
ApplyIfGreaterL if (c > x) { action(target) }계산합니다. 즉, BigInt 값 c little-endian 큐비트 레지스터보다 크면 targetaction 적용됩니다x
ApplyIfGreaterLE 즉, 등록 x 레지스터 y보다 크면 targetif x > y { action(target) }action 적용됩니다. 두 큐비트 레지스터는 모두 little-endian 형식이어야 합니다.
ApplyIfGreaterOrEqualL if (c >= x) { action(target) }계산합니다. 즉, BigInt 값이 little-endian 큐비트 레지스터 c 크거나 같은 경우 targetaction 적용됩니다x
ApplyIfGreaterOrEqualLE 즉, 레지스터 x 레지스터 y크거나 같은 경우 targetaction 적용되는 if x >= y { action(target) }계산합니다. 두 큐비트 레지스터는 모두 little-endian 형식이어야 합니다.
ApplyIfLessL if (c < x) { action(target) }계산합니다. 즉, BigInt 값 c little-endian 큐비트 레지스터보다 작은 경우 targetaction 적용됩니다x
ApplyIfLessLE 즉, 등록 x 레지스터 y미만이면 targetactionif x < y { action(target) }적용됩니다. 두 큐비트 레지스터는 모두 little-endian 형식이어야 합니다.
ApplyIfLessOrEqualL 즉, BigInt 값 c little-endian 큐비트 레지스터 x 작거나 같은 경우 if (c <= x) { action(target) }targetaction 적용합니다.
ApplyIfLessOrEqualLE 즉, 등록 x 레지스터 y작거나 같으면 targetactionif x <= y { action(target) }적용합니다. 두 큐비트 레지스터는 모두 little-endian 형식이어야 합니다.
FourierTDIncByLE Quantum Fourier Transform을 사용하여 little-endian register xs에 의해 little-endian register ys를 증가시킵니다.
IncByI little-endian register ys를 정수 c로 증분합니다.
IncByIUsingIncByLE 제공된 추가 기능을 사용하여 Int number c로 little-endian register ys를 증분합니다.
IncByL BigInt 번호 c로 little-endian register ys 증가
IncByLE little-endian register xs로 little-endian register ys를 증분합니다.
IncByLEUsingAddLE 두 개의 외부 추가기를 하나의 현재 위치 가산기로 전환하는 제네릭 작업
IncByLUsingIncByLE 제공된 추가기를 사용하여 BigInt 숫자 c로 little-endian register ys를 증분합니다.
LookAheadDKRSAddLE 캐리-lookahead 알고리즘을 사용하여 초기화된 little-endian register zs를 little-endian registers xs 및 ys의 합계로 설정합니다.
MAJ 이는 현재 위치 과반수 연산을 3개의 큐비트에 적용합니다.
ReflectAboutInteger 지정된 클래식 정수에 대한 양자 레지스터를 반영합니다.
RippleCarryCGAddLE 리플 캐리 알고리즘을 사용하여 초기화된 little-endian register zs를 little-endian registers xs 및 ys의 합계로 설정합니다.
RippleCarryCGIncByLE 리플 캐리 알고리즘을 사용하여 little-endian register xs에 의해 little-endian register ys를 증가합니다.
RippleCarryTTKIncByLE 두 정수의 역방향, 현재 위치 잔물결 캐리 추가.