arXiv:2501.00135quant-phcs.AI2025-01被引 9

用大模型模拟量子搜索,80亿参数模型准确率接近100%。

GroverGPT: A Large Language Model with 8 Billion Parameters for Quantum Searching

  • 基于LLaMA架构的专用大模型,通过模式识别模拟量子搜索算法。
  • 在6-10量子比特任务上准确率达近100%,20+量子比特超95%。
  • 适合量子算法研究者,可替代传统模拟工具提升效率。

量子计算是一种非冯·诺依曼范式,对特定问题具有理论加速优势。然而,当前噪声量子设备下量子电路的经典可模拟性边界仍不清晰。本文探索利用大语言模型(LLM)模拟量子图灵机输出,基于已知提供平方级加速的格罗弗量子电路。为此,我们开发了基于LLaMA 80亿参数架构的专用模型GroverGPT,训练数据超过15万亿词元。与需大量算力的暴力态矢量模拟不同,GroverGPT采用模式识别方式逼近量子搜索算法,无需显式表示量子态。分析9.7万例量子搜索实例发现,其性能持续优于OpenAI的GPT-4o(45%准确率),在4量子比特及以上数据训练后,6-10量子比特数据集准确率接近100%;当训练数据涵盖3-6量子比特时,对20+量子比特系统准确率超95%。分析表明,该模型捕捉的是格罗弗搜索的量子特征而非经典模式,且新颖提示策略可进一步提升性能。尽管准确率随系统规模增大而下降,但结果揭示了经典可模拟性的实际边界。本工作表明,针对任务的专用大模型可超越通用模型如GPT-4o,在量子算法学习中表现更优,并成为推动量子研究的强大工具。

原文摘要 · Abstract (English)

Quantum computing is an exciting non-Von Neumann paradigm, offering provable speedups over classical computing for specific problems. However, the practical limits of classical simulatability for quantum circuits remain unclear, especially with current noisy quantum devices. In this work, we explore the potential of leveraging Large Language Models (LLMs) to simulate the output of a quantum Turing machine using Grover's quantum circuits, known to provide quadratic speedups over classical counterparts. To this end, we developed GroverGPT, a specialized model based on LLaMA's 8-billion-parameter architecture, trained on over 15 trillion tokens. Unlike brute-force state-vector simulations, which demand substantial computational resources, GroverGPT employs pattern recognition to approximate quantum search algorithms without explicitly representing quantum states. Analyzing 97K quantum search instances, GroverGPT consistently outperformed OpenAI's GPT-4o (45\% accuracy), achieving nearly 100\% accuracy on 6- and 10-qubit datasets when trained on 4-qubit or larger datasets. It also demonstrated strong generalization, surpassing 95\% accuracy for systems with over 20 qubits when trained on 3- to 6-qubit data. Analysis indicates GroverGPT captures quantum features of Grover's search rather than classical patterns, supported by novel prompting strategies to enhance performance. Although accuracy declines with increasing system size, these findings offer insights into the practical boundaries of classical simulatability. This work suggests task-specific LLMs can surpass general-purpose models like GPT-4o in quantum algorithm learning and serve as powerful tools for advancing quantum research.

量子计算大模型搜索算法模拟

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。