# 西蒙问题

**西蒙问题**（Simon's problem）是量子计算中的一个谕示问题：给定对函数 \( f : \{0,1\}^n \to \{0,1\}^n \) 的黑箱访问权限，并承诺该函数要么是一一对应的，要么是恰好二对一的——即对某个固定的非零秘密串 \( s \) 有 \( f(x) = f(x \oplus s) \)——任务是找出 \( s \)。该问题由丹尼尔·R·西蒙（Daniel R. Simon）于 1994 年提出，首次在谕示模型中证明了量子计算与经典概率计算之间存在指数级差距，因而成为量子指数级加速的原型。<sup>[1](https://www.cs.miami.edu/home/burt/learning/csc595.251/s0097539796298637.pdf)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7515329/)</sup>

| 关键事实 | 详情 |
|---|---|
| 承诺 | 当且仅当 \( x' = x \) 或 \( x' = x \oplus s \)（其中 \( s \in \{0,1\}^n \) 是唯一的非零串）时 \( f(x) = f(x') \)；每个输出值恰有两个原像<sup>[3](https://www.bensont.me/chapters/simon/)</sup> |
| 出处 | 丹尼尔·R·西蒙（Daniel R. Simon），《论量子计算的能力》，FOCS 1994；期刊版 SIAM J. Comput. 26(5):1474–1483 (1997)<sup>[1](https://www.cs.miami.edu/home/burt/learning/csc595.251/s0097539796298637.pdf)</sup> |
| 量子代价 | \( O(n) \) 次谕示查询<sup>[4](https://www.ryanlarose.com/uploads/1/1/5/8/115879647/simon.pdf)</sup> |
| 经典代价 | 随机算法需 \( \Omega(2^{n/2}) \) 次查询，即生日界<sup>[3](https://www.bensont.me/chapters/simon/)</sup><sup> • </sup><sup>[5](https://drops.dagstuhl.de/storage/00lipics/lipics-vol374-icalp2026/html/LIPIcs.ICALP.2026.3/LIPIcs.ICALP.2026.3.html)</sup> |
| 意义 | BPP 与 BQP 之间首个相对化的指数级差距；一个谕示模型下的结果<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7515329/)</sup> |
| 隐藏子群形式 | 阿贝尔 HSP，\( G = \mathbb{F}_2^n \)，\( H = \langle a \rangle = \{0, a\} \)<sup>[6](https://www.cl.cam.ac.uk/teaching/2526/QCT/lecture6.pdf)</sup> |
| 硬件里程碑 | 2025 年在 127 量子比特的 IBM 处理器上，针对受限汉明重量变体展示了指数级加速，规模达 58 个量子比特<sup>[7](https://doi.org/10.1103/PhysRevX.15.021082)</sup> |

## 问题

输入是一个谕示，即一个能在任意被查询输入上计算 \( f \) 的黑箱。承诺条件是：当且仅当 \( x' = x \) 或 \( x' = x \oplus s \) 时 \( f(x) = f(x') \)，其中 \( \oplus \) 为按位异或，且 \( s \neq 0^n \)。因此每个输出值恰有两个原像，二者相差掩码 \( s \)。<sup>[3](https://www.bensont.me/chapters/simon/)</sup> 实际的输出值本身不携带任何有用含义，只有它们的相等结构才重要，因此可以任意重标号输出而不改变答案。<sup>[8](https://qiskit.qotlabs.org/learning/courses/fundamentals-of-quantum-algorithms/quantum-query-algorithms/simon-algorithm)</sup>

一个 \( n = 3 \)、\( s = 011 \) 的小例子：在 8 个输入串上的函数取 4 个互不相同的输出值，每个出现两次，而共享同一输出的任意两个输入按位异或都等于 011。<sup>[8](https://qiskit.qotlabs.org/learning/courses/fundamentals-of-quantum-algorithms/quantum-query-algorithms/simon-algorithm)</sup>

在西蒙最初的定理中，谕示是这样构造的：选取随机串 \( s(n) \) 与随机比特 \( b(n) \)；若 \( b(n) = 0 \)，函数是随机置换，否则是掩码为 \( s(n) \) 的随机二对一函数。西蒙证明了：任何查询该谕示至多 \( 2^{n/4} \) 次的概率图灵机，猜中 \( b(n) \) 的概率都不超过 \( 1/2 + 2^{-n/2} \)；这正是该分离背后经典困难性的形式化陈述。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7515329/)</sup>

## 量子算法

西蒙算法反复运行一个简单的电路，最后用经典线性代数收尾。<sup>[8](https://qiskit.qotlabs.org/learning/courses/fundamentals-of-quantum-algorithms/quantum-query-algorithms/simon-algorithm)</sup>

1. 制备两个寄存器，对上方寄存器施加哈达玛门 \( H^{\otimes n} \)，在所有 \( n \) 比特串上生成均匀叠加态，然后查询谕示，把两个寄存器纠缠为 \( \frac{1}{\sqrt{2^n}} \sum_x |f(x)\rangle |x\rangle \)。<sup>[8](https://qiskit.qotlabs.org/learning/courses/fundamentals-of-quantum-algorithms/quantum-query-algorithms/simon-algorithm)</sup>
2. 再次对上方寄存器施加 \( H^{\otimes n} \) 并测量。当 \( s \neq 0^n \) 时，结果 \( y \) 均匀分布在满足 \( y \cdot s = 0 \)（二进制点积）的 \( 2^{n-1} \) 个串上；满足 \( y \cdot s = 1 \) 的串永不出现，因为每个输出两个原像的振幅相互抵消。<sup>[8](https://qiskit.qotlabs.org/learning/courses/fundamentals-of-quantum-algorithms/quantum-query-algorithms/simon-algorithm)</sup>
3. 重复直到收集到 \( n - 1 \) 个线性无关的非零向量 \( y \)，然后在 \( \mathrm{GF}(2) \) 上用高斯消元求解所得的线性方程组。方程 \( y \cdot s = 0 \) 的解空间是一维的，由 \( s \) 本身张成，因此消元过程即可还原出 \( s \)。<sup>[9](https://github.com/shidsa6/simons-algorithm-project)</sup><sup> • </sup><sup>[6](https://www.cl.cam.ac.uk/teaching/2526/QCT/lecture6.pdf)</sup>

独立运行该电路 \( k = n + 10 \) 次，恢复 \( s \) 的概率超过 99.9%。<sup>[8](https://qiskit.qotlabs.org/learning/courses/fundamentals-of-quantum-algorithms/quantum-query-algorithms/simon-algorithm)</sup> 谕示查询总数为 \( O(n) \)，相对经典下界是指数级改进。<sup>[4](https://www.ryanlarose.com/uploads/1/1/5/8/115879647/simon.pdf)</sup>

## 查询复杂度与经典下界

**经典算法为何失效。** 经典随机算法只能通过找到碰撞——两个输出相同的不同输入——来了解 \( s \)。在输出被随机标记的情况下，\( k \) 个样本包含约 \( k(k-1)/2 \) 对，因此只有查询数达到约 \( 2^{n/2} \) 的生日规模时才会出现碰撞。<sup>[3](https://www.bensont.me/chapters/simon/)</sup> 这一 \( O(2^{n/2}) \) 对 \( O(n) \) 的分离可证明是最优的：求解西蒙问题的任何经典随机算法都需要 \( \Omega(2^{n/2}) \) 次查询，而量子算法只用 \( O(n) \) 次。<sup>[5](https://drops.dagstuhl.de/storage/00lipics/lipics-vol374-icalp2026/html/LIPIcs.ICALP.2026.3/LIPIcs.ICALP.2026.3.html)</sup> 后来证明精确查询复杂度同样能达到最优分离：精确量子算法使用 \( O(n) \) 次查询，而经典概率算法的下界为 \( \Omega(\sqrt{2^n}) \)。<sup>[10](https://arxiv.org/abs/1610.01920)</sup>

这种分离是谕示模型下的结果：输入是黑箱，无法编码为比特串，因此这一差距本身并不能分离复杂度类 BQP 与 BPP。<sup>[6](https://www.cl.cam.ac.uk/teaching/2526/QCT/lecture6.pdf)</sup> 尽管如此，它提供了 BPP 与 BQP 之间首个相对化的指数级差距；西蒙的论文指出，肖尔（Shor）在提出离散对数与整数分解的多项式时间量子算法时借鉴了这项工作。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7515329/)</sup><sup> • </sup><sup>[1](https://www.cs.miami.edu/home/burt/learning/csc595.251/s0097539796298637.pdf)</sup>

## 在隐藏子群框架中的位置

西蒙问题是阿贝尔隐藏子群问题（HSP）最简单的实例：其中函数在群 \( G \) 的隐藏子群 \( H \) 的各个陪集上取值恒定且互不相同，任务则是找出 \( H \)。对西蒙问题而言，\( G = \mathbb{F}_2^n \)，\( H = \langle a \rangle = \{0, a\} \)，是一个 2 阶子群，因此任务归结为找出它唯一的非零元素。<sup>[6](https://www.cl.cam.ac.uk/teaching/2526/QCT/lecture6.pdf)</sup><sup> • </sup><sup>[11](https://arxiv.org/abs/quant-ph/9704027)</sup> 同一框架也容纳了伯恩斯坦–瓦齐拉尼问题（Bernstein–Vazirani，\( H = \langle s \rangle^{\perp} \)）、\( \mathbb{Z}_N \) 上的求周期问题以及离散对数问题，它们共享同一套算法模板：制备均匀叠加态、查询谕示、施加量子傅里叶变换，再用经典方法重构 \( H \)。<sup>[6](https://www.cl.cam.ac.uk/teaching/2526/QCT/lecture6.pdf)</sup><sup> • </sup><sup>[12](https://quantumcomputingcourses.com/tutorials/simon-algorithm)</sup> 包含图同构在内的非阿贝尔 HSP 仍悬而未决。<sup>[12](https://quantumcomputingcourses.com/tutorials/simon-algorithm)</sup>

布拉萨德与霍耶（Brassard and Høyer）后来针对西蒙问题的一个自然的群论推广，给出了精确量子多项式时间算法；这是第一个能在精确量子多项式时间内求解、而在任何使用黑箱数据的经典有界错误概率计算机上都需要期望指数时间的判定问题；西蒙最初的算法只在期望意义上属于多项式时间。<sup>[11](https://arxiv.org/abs/quant-ph/9704027)</sup> 含 \( k \) 个隐藏周期的广义西蒙问题，其精确量子查询复杂度为 \( \Theta(n-k) \)，而经典算法为 \( \Omega(\max\{k, \sqrt{p^{n-k}}\}) \)。<sup>[13](https://arxiv.org/abs/1907.07367)</sup>

## 硬件演示

西蒙算法是最早从原理上展示真正量子优势的算法之一，如今已成为含噪中等规模量子（NISQ）设备的标准测试用例。一项在可远程访问的 NISQ 计算机上研究西蒙算法的工作发现，在所考察的所有设备上算法误差都随问题规模增大而增加：在 IonQ 设备上大致呈线性增长，而在 IBM 设备上，对于最复杂的谕示，增长偏离了线性；对实测数据外推预测，对于需要 50 个以上量子比特的问题，错误率将达 50%，等同于随机猜测，这与量子优势明确显现所需的约 53 个量子比特的估计相当接近。各厂商的含噪模拟器都未能定量复现所观察到的误差标度行为。<sup>[14](https://pmc.ncbi.nlm.nih.gov/articles/PMC12294995/)</sup>

2025 年，南加州大学丹尼尔·A·利达尔（Daniel A. Lidar）领导的团队，利用两台 127 量子比特的 IBM Quantum 超导处理器，针对隐藏周期具有受限汉明重量 \( w \) 的西蒙问题变体，展示了算法层面的量子加速。对于足够小的 \( w \) 与最多 58 个量子比特的电路，他们在“求解所需谕示查询次数”这一指标上测得指数级加速，并借助动力学解耦与测量误差缓解得到增强，但质量低于无噪预测；作者将其描述为对阿贝尔隐藏子群问题真正量子优势的一次演示。<sup>[7](https://doi.org/10.1103/PhysRevX.15.021082)</sup> 更早的一项实验演示实现了一种单向（基于测量的）量子计算算法来求解西蒙问题，利用了同样的经典与量子运行时间之间的指数级差距。<sup>[15](https://arxiv.org/abs/1410.3859)</sup>

## References

1. [Daniel R. Simon (1997). On the Power of Quantum Computation. SIAM Journal on Computing 26(5):1474–1483.](https://www.cs.miami.edu/home/burt/learning/csc595.251/s0097539796298637.pdf)
2. [Quantum Simulation Logic, Oracles, and the Quantum Advantage. Entropy 21(8):800 (2019).](https://pmc.ncbi.nlm.nih.gov/articles/PMC7515329/)
3. [Simon's algorithm and hidden XOR structure, Quantum Computing 2026, Chapter 10.](https://www.bensont.me/chapters/simon/)
4. [QUIC Seminar 9: Simon's Algorithm, University of Calgary lecture notes.](https://www.ryanlarose.com/uploads/1/1/5/8/115879647/simon.pdf)
5. [Pseudo-Deterministic Quantum Algorithms, LIPIcs ICALP 2026.](https://drops.dagstuhl.de/storage/00lipics/lipics-vol374-icalp2026/html/LIPIcs.ICALP.2026.3/LIPIcs.ICALP.2026.3.html)
6. [The hidden subgroup problem, Cambridge Quantum Computing lecture 6.](https://www.cl.cam.ac.uk/teaching/2526/QCT/lecture6.pdf)
7. [Singkanipa, Kasatkin, Zhou, Quiroz, Lidar (2025). Demonstration of Algorithmic Quantum Speedup for an Abelian Hidden Subgroup Problem. Phys. Rev. X 15, 021082.](https://doi.org/10.1103/PhysRevX.15.021082)
8. [Simon's algorithm, IBM Quantum / Qiskit Fundamentals of Quantum Algorithms.](https://qiskit.qotlabs.org/learning/courses/fundamentals-of-quantum-algorithms/quantum-query-algorithms/simon-algorithm)
9. [Simon's algorithm: hidden-subgroup XOR-mask recovery (reference implementation).](https://github.com/shidsa6/simons-algorithm-project)
10. [Cai, Qiu (2016). Optimal Separation in Exact Query Complexities for Simon's Problem. arXiv:1610.01920.](https://arxiv.org/abs/1610.01920)
11. [Brassard, Høyer (1997). An Exact Quantum Polynomial-Time Algorithm for Simon's Problem. arXiv:quant-ph/9704027.](https://arxiv.org/abs/quant-ph/9704027)
12. [Simon's Algorithm: Exponential Quantum Speedup for Period Finding, tutorial.](https://quantumcomputingcourses.com/tutorials/simon-algorithm)
13. [Query complexity of generalized Simon's problem. arXiv:1907.07367.](https://arxiv.org/abs/1907.07367)
14. [Simon's Algorithm in the NISQ Cloud. PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC12294995/)
15. [Experimental Realization of a One-way Quantum Computer Algorithm Solving Simon's Problem. arXiv:1410.3859.](https://arxiv.org/abs/1410.3859)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 物理学 › 量子物理学 › Quantum information science › Quantum computing and algorithms › Quantum complexity theory › Quantum–classical class relationships and oracles

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/simons-problem

English original: https://www.edgepedia.org/simons-problem
