QASM-Eval:用于训练和评估LLM在超越量子电路的OpenQASM-3上的数据集
QASM-Eval: A Dataset to Train and Evaluate LLMs on OpenQASM-3 Beyond Quantum Circuits
AI总结:
针对LLM在OpenQASM-3硬件级编程上的训练与评估空白,构建了包含专家验证测试集和训练集的数据集,覆盖经典逻辑、时序调度、脉冲控制等,并通过扩展验证器自动验证,实验表明微调后LLM性能显著提升。
摘要:
量子计算仍处于含噪中等规模量子(NISQ)时代,其性能受到噪声的高度限制。解决这一限制通常需要超越门序列电路规范的硬件相关能力,包括用于量子纠错(QEC)的中间电路测量和经典反馈、用于动态解耦(DD)的精确时序控制,以及用于校准的脉冲级波形访问。OpenQASM-3正是为了暴露这些能力而引入的,提供了硬件级编程接口。然而,尽管大语言模型在代码生成方面取得了快速进展,目前仍没有专门设计用于训练和评估LLM在涉及高级硬件导向特性的OpenQASM-3程序上的数据集。为填补这一空白,我们推出了QASM-Eval,这是首个专门设计用于训练和评估LLM在OpenQASM-3上的全面数据集。QASM-Eval并非专注于量子算法设计或推理,而是明确针对该语言的硬件相关特性。QASM-Eval包含一个由专家验证的100个任务的测试集和一个4000个任务的训练集,系统性地涵盖了经典逻辑、时序调度、脉冲控制以及复杂的实际工作流程。为了自动验证生成的程序,我们使用扩展的验证器检查语法、量子态和程序时间线。我们的评估表明,虽然最先进的LLM在OpenQASM-3编码任务上表现困难,但在QASM-Eval上进行针对性微调后取得了显著提升。QASM-Eval为加速开发NISQ时代硬件相关量子编程的可靠LLM助手提供了关键的基准和训练基础。数据和代码:https://github.com/fuzhenxiao/QASM-Eval
英文摘要:
Quantum computing remains in the Noisy Intermediate-Scale Quantum (NISQ) era, with performance constrained by noise. Addressing this limitation requires hardware-facing capabilities beyond gate sequences: mid-circuit measurement and classical feedback for quantum error correction (QEC), precise timing for dynamical decoupling (DD), and pulse-level waveform access for calibration. OpenQASM 3 exposes these capabilities through a hardware-level programming interface. Despite rapid progress in large language models (LLMs) for code generation, datasets targeting these advanced features remain lacking. We introduce QASM-Eval, the first comprehensive dataset to train and evaluate LLMs on OpenQASM 3, targeting completion of hardware-facing constructs within a supplied program context. QASM-Eval comprises an expert-curated test set of 1,200 tasks and a training set of over 4,000 tasks, covering classical logic, timing scheduling, pulse control, and complex tasks inspired by quantum-control workflows. An extended verifier automatically checks syntax, quantum measurement distributions, and program timelines. Our evaluation identifies substantial headroom for OpenQASM 3 code generation and significant gains from targeted fine-tuning. Fine-tuned Llama-3-8B outperforms zero-shot GPT-5.6-Terra, while fine-tuned Llama-3-70B achieves 61.17% overall pass@1 and approaches few-shot-augmented GPT-5.6-Terra. QASM-Eval provides a benchmark and training resource for specification-guided code generation over the hardware-facing constructs of OpenQASM 3, supporting the development of LLM assistants for quantum programming. Data and code: https://github.com/fuzhenxiao/QASM-Eval
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。