From 919d6cb48dbf983b46486a6025dd221807eec2a7 Mon Sep 17 00:00:00 2001 From: huanxiaoling <3174348550@qq.com> Date: Tue, 6 Dec 2022 08:27:54 +0800 Subject: [PATCH] modify the error in docs --- docs/mindquantum/docs/source_en/shor_algorithm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mindquantum/docs/source_en/shor_algorithm.md b/docs/mindquantum/docs/source_en/shor_algorithm.md index 2d5271a44d..5b47a0d169 100644 --- a/docs/mindquantum/docs/source_en/shor_algorithm.md +++ b/docs/mindquantum/docs/source_en/shor_algorithm.md @@ -112,7 +112,7 @@ $$ T_x|x\rangle \rightarrow |a^x\ mod\ N\rangle $$ -Each $T_x$ is controlled by register 1, they only works when the number stored in register 1 is $x$. Finally, there are a total of $N$ gates, and the entire circuit including these $N$ gates corresponds to the operator $U$. Note that $T_x$ is not itself a gate, since it is not a reversible operation. Therefore, only when register 2 is in the $|0\rangle$ state, the oracle can give the correct output. +Each $T_x$ is controlled by register 1, and they only works when the number stored in register 1 is $x$. Finally, there are a total of $N$ gates, and the entire circuit including these $N$ gates corresponds to the operator $U$. Note that $T_x$ is not itself a gate, since it is not a reversible operation. Therefore, only when register 2 is in the $|0\rangle$ state, the oracle can give the correct output. The following is the compromised Oracle construction method: -- Gitee