RubriQ:用于约束感知量子电路合成的基于规则的组相对策略优化
RubriQ: Rubric-Guided Group Relative Policy Optimization for Constraint-Aware Quantum Circuit Synthesis
AI总结:
针对量子电路合成瓶颈,RubriQ框架将其作为大语言模型代码生成任务,用组相对策略优化,以程序化规则为奖励函数,集成CUDA-Q模拟,在基准任务和量子处理器上表现出色,建立高性能计算驱动管道大规模生成容错电路。
摘要:
设计算法正确且硬件兼容的容错量子电路仍是向可扩展量子计算过渡的主要瓶颈。我们引入了RubriQ,这是一个可扩展框架,将电路合成表述为大语言模型代码生成任务,并通过组相对策略优化(GRPO)进行优化。与传统黑箱神经评论家不同,RubriQ使用基于领域的程序化规则作为强化学习奖励函数,评估电路的T门减少、硬件拓扑合规性和酉保真度。为支持高通量训练,RubriQ将GPU加速的CUDA-Q模拟直接集成到强化学习循环中,并使用DeepSpeed ZeRO2在多节点NVIDIA A100集群上的NERSC Perlmutter上部署。在基准任务上,RubriQ实现了平均3.31倍的T门压缩,显著优于稀疏奖励RL基线(2.05倍),收敛速度快2至3倍,硬件约束违规率低于1%。在IBM和IonQ量子处理器上经过验证,RubriQ建立了一个自动化的、由高性能计算驱动的管道,用于大规模生成硬件就绪的容错量子电路。
英文摘要:
Quantum circuits are crucial for understanding quantum algorithms and must be correct and efficient on quantum processing units (QPUs). Reinforcement learning (RL) with verifiers can train large language models (LLMs) to synthesize circuits; however, the reward system is unclear. In this study, we present RubriQ, a quantum rubric, where a verifier ensures correctness and scores assess cost. We demonstrate that, leveraging group relative policy optimization, the verifier controls correctness, while scores rank correct circuits. Our evaluation includes unitary, statevector, stabilizer-tableau, and randomized verifiers consisting of quantum Fourier transform (QFT), phase-estimation (QPE), and Trotter unitaries, along with Clifford, entanglement, unitary, arithmetic, and adder quantum circuits, up to 192 qubits. Our results show that training increases correct outputs from 7% to 91%, whereas the binary reward closes less than 10%. Notably, among verified circuits, the rubric reduces average cost by 91%. We believe our framework provides valuable insights into practical quantum computing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。