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 日

1 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeQuantum Mechanics についてさらに検索

製品

リリース

R2019b

質問済み:

2020 年 1 月 24 日

編集済み:

2024 年 10 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by