arXiv:2505.07711cs.ETcs.AI2025-05被引 3

用大模型提升量子电路划分精度,突破小规模限制

Circuit Partitioning Using Large Language Models for Quantum Compilation and Simulations

  • 用Llama、Mistral等大模型理解并生成QASM代码,实现电路自动划分
  • 微调后模型划分准确率达53.4%,远超直接使用现成模型的效果
  • 适合研究量子编译优化与大模型在量子计算中应用的开发者

当前处于噪声中等规模量子(NISQ)时代,量子门噪声严重制约计算结果可读性。现有量子电路编译算法虽旨在减少噪声门,但受限于计算复杂度,仅适用于不超过5-6量子比特的电路,需先对大规模电路进行划分。传统划分方法为启发式且未考虑后续门优化任务。本文探索利用大语言模型(LLMs)如Llama和Mistral的能力,通过学习伯克利量子综合工具包的快速划分策略,实现对量子电路的智能划分。实验表明,经仔细微调的开源LLM在划分任务上达到53.4%的准确率,而未经训练的现成模型在标准单次和少量示例训练下无法正确划分电路。

原文摘要 · Abstract (English)

We are in the midst of the noisy intermediate-scale quantum (NISQ) era, where quantum computers are limited by noisy gates, some of which are more error-prone than others and can render the final computation incomprehensible. Quantum circuit compilation algorithms attempt to minimize these noisy gates when mapping quantum algorithms onto quantum hardware but face computational challenges that restrict their application to circuits with no more than 5-6 qubits, necessitating the need to partition large circuits before the application of noisy quantum gate minimization algorithms. The existing generation of these algorithms is heuristic in nature and does not account for downstream gate minimization tasks. Large language models (LLMs) have the potential to change this and help improve quantum circuit partitions. This paper investigates the use of LLMs, such as Llama and Mistral, for partitioning quantum circuits by capitalizing on their abilities to understand and generate code, including QASM. Specifically, we teach LLMs to partition circuits using the quick partition approach of the Berkeley Quantum Synthesis Toolkit. Through experimental evaluations, we show that careful fine-tuning of open source LLMs enables us to obtain an accuracy of 53.4% for the partition task while over-the-shelf LLMs are unable to correctly partition circuits, using standard 1-shot and few-shot training approaches.

量子计算大模型电路划分编译优化

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