Shor Algorithm for prime factoring

조회 수: 2 (최근 30일)
Renan Poço
Renan Poço 2020년 1월 24일
편집: Walter Roberson 2024년 10월 22일
Hi, i'm trying to run this code on Matlab R2020a regarding Shor's Algorithm for prime factoring and i'm getting an error saying that the function 'bigmod' is unrecognized. What should i do to make it work properly? Thanks
Unrecognized function or variable 'bigmod'.
Error in shor>order_qstyle (line 62)
f(k) = bigmod(q,k,N);
Error in shor (line 18)
k = order_qstyle(q,N); % search order q^k mod N using fft
Error in shor (line 14)
factors = cat(2, factors, shor(teiler), shor(N./teiler));

채택된 답변

Stephen23
Stephen23 2020년 1월 24일
편집: Stephen23 2020년 1월 24일
You need to download bigmod from here:
(the link is given inside the shor function that you are using, you just need to scroll down to the end. I agree that this dependency should be better documented).
  댓글 수: 1
Renan Poço
Renan Poço 2020년 1월 24일
이동: Cris LaPierre 2024년 10월 22일
Thank you Stephen

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Quantum Mechanics에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by