# 量子强化学习

量子强化学习（Quantum reinforcement learning, QRL）是一种将强化学习算法与量子计算相结合的机器学习方法，利用量子态或量子设备来表示和更新智能体的策略或价值函数。这里区分两种设定：一类是混合量子-经典智能体，使用变分量子电路学习经典控制任务；另一类是量子系统内部或借助量子系统进行学习的智能体，其环境本身是量子的，或通过量子预言机访问。之所以追求这种结合，是因为在特定条件下，量子叠加和[振幅放大](https://www.edgepedia.org/zh/amplitude-amplification)能够减少探索与价值估计所需的样本数或交互步数。

| 关键事实 | 详情 |
|---|---|
| 最早的框架 | 一篇题为《量子强化学习》的期刊框架论文，作者为董道毅、陈春林、李汉雄和 Tzyh-Jong Tarn，2008 年发表于《IEEE 系统、人与控制论汇刊，B 辑》<sup>[1](https://doi.org/10.1109/tsmcb.2008.925743)</sup> |
| 可证明的智能体加速 | Giuseppe Davide Paparo 及其同事的《主动学习智能体的量子加速》，《物理评论 X》，2014 年，为投影模拟智能体带来了二次加速<sup>[2](https://doi.org/10.1103/physrevx.4.031002)</sup> |
| 主要类别 | 量子启发式强化学习、变分量子电路（VQC）智能体，以及全量子（量子环境或预言机访问）算法<sup>[3](https://arxiv.org/pdf/2211.03464v2.pdf)</sup> |
| 可证明的加速 | 在正则性条件或预言机条件下，样本复杂度实现二次加速；对于特殊构造的量子可访问环境，可实现指数级改进<sup>[4](https://arxiv.org/pdf/1710.11160v3.pdf)</sup> |
| 典型硬件规模 | 在真实设备上的演示使用 3 到 24 个量子比特；一个 24 量子比特单量子比特门智能体在 IBM 硬件上运行<sup>[5](https://ar5iv.labs.arxiv.org/html/2203.14348)</sup> |
| 优势现状 | 对于标准任务上的混合 VQC 智能体，不存在有保证的量子优势；2025 年的一项基准研究对部分早期优越性主张提出了质疑<sup>[3](https://arxiv.org/pdf/2211.03464v2.pdf)</sup><sup> • </sup><sup>[6](https://proceedings.mlr.press/v267/meyer25b.html)</sup> |

## 工作原理

在最初的基于叠加的框架中，整个状态（动作）集被表示为一个量子叠加态，通过对量子态的随机观测获得本征态（本征动作）。<sup>[7](https://arxiv.org/pdf/0810.3828)</sup> 每个本征值的出现概率由概率幅决定，而概率幅根据收到的奖励进行更新，因此测量坍缩实现了自适应的探索-利用权衡。<sup>[8](https://www.intechopen.com/chapters/673)</sup>

现代混合 QRL 用参数化量子电路取代神经网络。智能体的状态通过特征映射 \( U_{\phi}(s) \) 编码；制备一个带参数 \( \theta_t \) 的变分态；测量一个依赖于动作的可观测量 \( O_a \)；再将期望值 \( \langle O_a \rangle_{s,\theta} \) 后处理为状态-动作价值 \( Q_{\theta}(s,a) \) 或策略 \( \pi_{\theta}(a|s) \)。<sup>[3](https://arxiv.org/pdf/2211.03464v2.pdf)</sup> 一种常见的策略形式是对测量期望值取 softmax，

\[ \pi_{\theta}(a|s) = \frac{e^{\beta \langle O_a \rangle_{s,\theta}}}{\sum_{a'} e^{\beta \langle O_{a'} \rangle_{s,\theta}}}, \]

其中 \( \beta \) 是可调的逆温度参数。<sup>[9](https://www.tensorflow.org/quantum/tutorials/quantum_reinforcement_learning)</sup>

可证明的加速来自三种机制。振幅放大，如 Grover 算法中的那样，加速了投影模拟智能体中的动作选择。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC7612051/)</sup> 量子均值估计将估计期望值的样本成本从经典情况下的 \( \mathcal{O}(\mathrm{Var}[X]/\epsilon^2) \) 降低到大约 \( \mathcal{O}(\sqrt{\mathrm{Var}[X]}/\epsilon) \)，从而为具有量子生成模型访问权限的 MDP 求解器在有效时域 \( \Gamma \) 和精度 \( \epsilon \) 上带来二次加速。<sup>[11](https://arxiv.org/pdf/2112.08451)</sup> 对于编码 Simon 问题和递归傅里叶采样的特殊构造量子可访问环境，学习效率的指数级改进是可证明的，每次预言机查询约需 \( 5\eta \) 个环境交互步骤。<sup>[4](https://arxiv.org/pdf/1710.11160v3.pdf)</sup>

## 实现方式

混合变分循环的运行方式如下。首先，将环境状态编码到电路中，通常采用角度嵌入加数据重上传的方式：交替使用编码幺正（单量子比特 \( R_z, R_y \) 旋转）和变分幺正（\( R_z, R_y \) 加上纠缠受控-Z 门），并带有可训练的输入缩放参数和可训练的可观测量权重。<sup>[12](https://proceedings.neurips.cc/paper/2021/file/eec96a7f788e88184c0e713456026f3f-Paper.pdf)</sup> 其次，通过测量依赖于动作的可观测量来选择动作；对于 CartPole，策略使用全局 \( Z_0 \cdot Z_1 \cdot Z_2 \cdot Z_3 \) 泡利乘积，而 Q 学习使用 \( Z_0 \cdot Z_1 \) 和 \( Z_2 \cdot Z_3 \) 乘积。<sup>[9](https://www.tensorflow.org/quantum/tutorials/quantum_reinforcement_learning)</sup> 第三，收集奖励并用基于梯度的规则更新电路参数，梯度通过参数偏移规则或 SPSA 近似获得<sup>[3](https://arxiv.org/pdf/2211.03464v2.pdf)</sup>；策略梯度 \( \nabla_{\theta} J(\theta) \) 在计算期望值的同一量子设备上估计。<sup>[13](https://link.springer.com/article/10.1007/s42484-023-00101-8)</sup>

基于价值的智能体模仿经典深度 Q 学习，使用[硬件高效拟设](https://www.edgepedia.org/zh/hardware-efficient-ansatz)、目标网络、\( \varepsilon \)-贪心策略和经验回放。<sup>[14](https://arxiv.org/pdf/2103.15084)</sup> 策略梯度的 \( \varepsilon \)-近似可以用与总参数数量成对数关系的样本数获得。<sup>[13](https://link.springer.com/article/10.1007/s42484-023-00101-8)</sup> 常见的软件平台有 PennyLane（配合 PyTorch 的 ADAM 优化器）<sup>[13](https://link.springer.com/article/10.1007/s42484-023-00101-8)</sup>、TensorFlow Quantum 和 Qiskit；TensorFlow Quantum 文档中记录了解决 CartPole-v1 并应用于 FrozenLake-v1、MountainCar-v0 和 Acrobot-v1 的策略梯度和深度 Q 学习 PQC 智能体。<sup>[9](https://www.tensorflow.org/quantum/tutorials/quantum_reinforcement_learning)</sup>

## 起源

一篇题为《量子强化学习》的期刊框架论文，由董道毅、陈春林、李汉雄和 Tzyh-Jong Tarn 撰写，于 2008 年发表在《IEEE 系统、人与控制论汇刊，B 辑》上<sup>[1](https://doi.org/10.1109/tsmcb.2008.925743)</sup>；会议版本归功于董道毅在《第一届国际自然计算会议论文集》（2005 年）上的工作。<sup>[15](https://bishtref.com/articles/10.1109/tsmcb.2008.925743)</sup> 该框架基于状态叠加原理和量子并行性，将传统强化学习的状态（动作）等同于 QRL 中的本征态（本征动作）。<sup>[7](https://arxiv.org/pdf/0810.3828)</sup> 第二条奠基性路线是 Giuseppe Davide Paparo 及其同事的《主动学习智能体的量子加速》，2014 年发表于《物理评论 X》，为投影模拟智能体提供了可证明的量子加速。<sup>[2](https://doi.org/10.1103/physrevx.4.031002)</sup>

## 变体

一篇综述将 QRL 分为量子启发式强化学习（QiRL）、基于 VQC 的方法（综述了 68 篇论文）以及后 NISQ 或全量子方法。<sup>[3](https://arxiv.org/pdf/2211.03464v2.pdf)</sup>

**量子启发式强化学习**涵盖早期基于叠加和振幅放大的方案，其中动作选择遵循测量量子比特寄存器上的玻恩规则；这些变体现在被视为量子启发式的，不具有内在的量子优势。<sup>[3](https://arxiv.org/pdf/2211.03464v2.pdf)</sup>

**基于 VQC 的价值方法**使用电路作为 Q 函数，采用 MSE 损失 \( L(\theta) = \mathbb{E}[(r_t + \gamma \cdot \max_{a'} Q_{\theta'}(s_{t+1},a') - Q_{\theta}(s_t,a_t))^2] \)、经验回放和目标网络。其中一个此类智能体在 FrozenLake（16 个状态，4 个动作）上用 2 到 5 个量子比特进行了测试，性能与深度神经网络相当，而参数量约少一个数量级。<sup>[3](https://arxiv.org/pdf/2211.03464v2.pdf)</sup>

**基于策略的方法**包括 SOFTMAX-PQC 系列，使用带可训练输入缩放和可观测量权重的数据重上传电路；在标准 Gym 基准上，每组 20 个智能体的测试中，SOFTMAX-PQC 明显优于 RAW-PQC。<sup>[12](https://proceedings.neurips.cc/paper/2021/file/eec96a7f788e88184c0e713456026f3f-Paper.pdf)</sup>

**投影模拟**是一种记忆网络智能体，通过在带自适应权重的图上随机游走来学习；通过将随机游走替换为量子随机游走实现“量子化”，可能在更快的动作选择（决策）方面具有优势。<sup>[3](https://arxiv.org/pdf/2211.03464v2.pdf)</sup>

**全量子设定**包括量子策略梯度算法，当策略满足正则性条件时，在样本复杂度上实现完全的二次加速；raw-PQC、softmax-PQC 和 softmax1-PQC 策略被证明满足这些条件。<sup>[16](https://pure.uva.nl/ws/files/177261528/Quantum_Policy_Gradient_Algorithms.pdf)</sup>

## 应用

在真实的 NISQ 硬件上，一个 24 量子比特单量子比特门 VQC 智能体（24 个可训练角度参数，100 个输出缩放参数）在 IBM 设备上完成了 LunarLander，达到平均奖励 200，而理想模拟器为 250。<sup>[5](https://ar5iv.labs.arxiv.org/html/2203.14348)</sup> 一个 VQC 智能体的训练和测试在 5 量子比特的 ibmq_manila 设备上进行，用于一个使用 3 个量子比特的 8 状态上下文赌博机；经过误差缓解的硬件训练智能体识别出了所有 8 个状态的最优动作。<sup>[17](https://arxiv.org/pdf/2212.06663v2.pdf)</sup>

最大的应用领域是量子技术本身的强化学习：实验实现包括超导平台纠缠门脉冲的优化，保真度比最先进水平高一个数量级；基于 FPGA 的超导量子比特亚微秒延迟反馈；以及 RL 发现的稳定逻辑量子比特的量子纠错码。<sup>[18](https://pure.mpg.de/rest/items/item_3691042_1/component/file_3691043/content)</sup>

## 局限与替代方案

**可训练性。** VQC 架构面临贫瘠高原、可训练性问题以及大类多层电路不可训练的问题，各种 VQC 必须过参数化才能训练，这阻碍了量子比特数的进一步增加。<sup>[19](https://arxiv.org/html/2312.13798)</sup> 然而，带数据重上传的基于 VQC 的深度 Q 学习在量子比特数增加时，在整个训练过程中仍保持可观的梯度幅度和方差，表明这些模型可能避免贫瘠高原式的梯度消失<sup>[20](https://link.springer.com/article/10.1007/s42484-024-00190-z)</sup>；这两方面证据仍未调和。

**噪声与开销。** 在 ibmq_manila 实验中，向非最优奖励的收敛主要归因于退相干噪声，转译后的电路平均约 27 个 CX 门，而原始电路为 15 个。<sup>[17](https://arxiv.org/pdf/2212.06663v2.pdf)</sup> 在叠加态中建模复杂的智能体-环境交互需要大量的纠错开销，而基于 Grover 的方法适合 NISQ 设备。<sup>[21](https://link.springer.com/article/10.1007/s11128-023-03867-9)</sup>

**与经典深度 RL 的比较。** 单量子比特 VQC 在 CartPole 上约 150 个回合收敛，而 8,800 参数的经典网络约需 400 个回合；一个 336 参数的 14 量子比特混合模型在波束管理任务上几乎匹配 4,611 参数经典模型的样本复杂度。<sup>[5](https://ar5iv.labs.arxiv.org/html/2203.14348)</sup><sup> • </sup><sup>[22](https://arxiv.org/pdf/2501.15893)</sup> 对此，2025 年 ICML 基于样本复杂度统计估计量的基准方法对部分先前 QRL 优越性的主张提出了质疑，其作者指出目前无法做出明确的量子优势断言，因为小规模实验无法确立经典不可处理性。<sup>[6](https://proceedings.mlr.press/v267/meyer25b.html)</sup> 具体到混合 VQC 方法，除了受密码学启发的人工数据集外，不存在有保证的量子优势。<sup>[3](https://arxiv.org/pdf/2211.03464v2.pdf)</sup>

**2023 年后的理论。** 一种针对表格型 MDP 的 UCRL 风格[量子算法](https://www.edgepedia.org/zh/quantum-algorithm)实现了 \( \mathcal{O}(\mathrm{poly}(S,A,H,\log T)) \) 最坏情况遗憾，打破了经典的 \( \Omega(\sqrt{T}) \)-遗憾壁垒<sup>[23](https://proceedings.mlr.press/v235/zhong24b.html)</sup>；量子自然策略梯度算法在量子预言机查询中达到样本复杂度 \( \tilde{\mathcal{O}}(\epsilon^{-1.5}) \)，而经典下界为 \( \tilde{\mathcal{O}}(\epsilon^{-2}) \)。<sup>[24](https://arxiv.org/html/2501.16243)</sup> 这些可证明的结果涉及预言机访问模型，而非近期设备。

## References

1. [Daoyi Dong and colleagues (2008). Quantum Reinforcement Learning. IEEE Transactions on Systems Man and Cybernetics Part B (Cybernetics).](https://doi.org/10.1109/tsmcb.2008.925743)
2. [Giuseppe Davide Paparo and colleagues (2014). Quantum Speedup for Active Learning Agents. Physical Review X.](https://doi.org/10.1103/physrevx.4.031002)
3. [A Survey on Quantum Reinforcement Learning (Meyer et al.)](https://arxiv.org/pdf/2211.03464v2.pdf)
4. [Exponential improvements for quantum-accessible reinforcement learning (arXiv:1710.11160)](https://arxiv.org/pdf/1710.11160v3.pdf)
5. [Unentangled quantum reinforcement learning agents in the OpenAI Gym (Chen et al.)](https://ar5iv.labs.arxiv.org/html/2203.14348)
6. [Benchmarking Quantum Reinforcement Learning (ICML 2025, Meyer et al., PMLR 267:43934-43964)](https://proceedings.mlr.press/v267/meyer25b.html)
7. [Quantum reinforcement learning (Dong et al., arXiv:0810.3828)](https://arxiv.org/pdf/0810.3828)
8. [Superposition-Inspired Reinforcement Learning and Quantum Reinforcement Learning (IntechOpen)](https://www.intechopen.com/chapters/673)
9. [Parametrized Quantum Circuits for Reinforcement Learning | TensorFlow Quantum](https://www.tensorflow.org/quantum/tutorials/quantum_reinforcement_learning)
10. [Experimental quantum speed-up in reinforcement learning (PMC)](https://pmc.ncbi.nlm.nih.gov/articles/PMC7612051/)
11. [Quantum Reinforcement Learning via quantum-accessible MDPs (SolveMdp1/SolveMdp2, arXiv:2112.08451)](https://arxiv.org/pdf/2112.08451)
12. [Parametrized Quantum Policies for Reinforcement Learning (Jerbi et al., NeurIPS 2021)](https://proceedings.neurips.cc/paper/2021/file/eec96a7f788e88184c0e713456026f3f-Paper.pdf)
13. [Policy gradients using variational quantum circuits (Quantum Machine Intelligence, Sequeira et al., 2023)](https://link.springer.com/article/10.1007/s42484-023-00101-8)
14. [Quantum agents in the Gym: a variational quantum algorithm for deep Q-learning (Skolik, Jerbi, Dunjko)](https://arxiv.org/pdf/2103.15084)
15. [Quantum reinforcement learning (IEEE Transactions on Systems, Man, and Cybernetics, Part B, 2008, DOI 10.1109/TSMCB.2008.925743)](https://bishtref.com/articles/10.1109/tsmcb.2008.925743)
16. [Quantum Policy Gradient Algorithms (TQC 2023, Jerbi, Ozols, Dunjko; DOI 10.4230/LIPIcs.TQC.2023.13)](https://pure.uva.nl/ws/files/177261528/Quantum_Policy_Gradient_Algorithms.pdf)
17. [Quantum Policy Gradient Algorithm with Optimized Action Decoding](https://arxiv.org/pdf/2212.06663v2.pdf)
18. [Reinforcement Learning in Quantum Technology (review, Max Planck Institute repository)](https://pure.mpg.de/rest/items/item_3691042_1/component/file_3691043/content)
19. [Variational Quantum Circuit Design for Quantum Reinforcement Learning on Continuous Environments](https://arxiv.org/html/2312.13798)
20. [VQC-based reinforcement learning with data re-uploading: performance and trainability (Quantum Machine Intelligence, 2024)](https://link.springer.com/article/10.1007/s42484-024-00190-z)
21. [Quantum reinforcement learning (Quantum Information Processing, comparison study)](https://link.springer.com/article/10.1007/s11128-023-03867-9)
22. [Benchmarking hybrid quantum-classical RL on BeamManagement6G and CartPole (arXiv:2501.15893)](https://arxiv.org/pdf/2501.15893)
23. [Provably Efficient Exploration in Quantum Reinforcement Learning with Logarithmic Worst-Case Regret (ICML 2024)](https://proceedings.mlr.press/v235/zhong24b.html)
24. [Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach](https://arxiv.org/html/2501.16243)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/quantum-reinforcement-learning

English original: https://www.edgepedia.org/quantum-reinforcement-learning
