变分量子电路的权重空间编程:无需优化器,大语言模型直接编写量子电路参数
Weight-Space Programming of Variational Quantum Circuits: Large Language Models Write Quantum Circuit Parameters Without an Optimizer
AI总结:
该研究将经典权重空间编程扩展到量子电路,让LLM直接编写变分量子电路参数,在参数可解释时性能接近优化器,还能作为优化热启动,但在不透明权重空间和门约定敏感场景存在局限。
摘要:
变分量子算法(VQAs)通过重复的量子设备评估优化电路角度,常面临梯度消失和高优化成本问题。我们探究大语言模型(LLM)能否直接编写这些角度。将经典网络的权重空间编程扩展到量子电路,我们为前沿LLM(\n\gpt)提供问题、电路和门约定。其角度按编写的内容直接执行,无需返回损失、梯度或精度反馈。在139次请求中,我们测试手写数字分类、自旋链和H₂的VQE基态估计,以及MaxCut QAOA,与随机权重、经典优化、以及在相同电路上以LLM权重初始化的优化进行比较。当参数具有可解释结构时,LLM的表现与优化器相当或接近:它在每个VQE问题上达到95-100%的能谱,以闭式形式推导H₂的精确基态,为每个图找到最优的深度1 QAOA角度,用12-18个手写权重实现3与8的手写数字分类93-96%的精度,优于在相同10个示例上训练的优化器。其权重也是强大的热启动:优化在中位数1次评估后达到最佳值,而非数百次。当允许设计电路时,LLM在所有30个案例中选择依赖数据的旋转链,编码像素重要性(二分类任务用1个量子比特,10类任务每个量子比特用1条链),在10个数字上达到65%的精度。然而该方法在不透明权重空间中失效:当固定电路超过30个权重时,精度降至随机水平,而优化仍能提升。它还对门约定敏感:42次QAOA回复中有6次混合角符号反转并失败。我们发布所有提示、回复和分数。
英文摘要:
Variational quantum algorithms (VQAs) optimize circuit angles through repeated quantum-device evaluations, often facing vanishing gradients and high optimization costs. We ask whether a large language model (LLM) can write these angles directly. Extending *weight-space programming* from classical networks to quantum circuits, we provide a frontier LLM (\gpt) with the problem, circuit, and gate conventions. Its angles are executed exactly as written, without returning losses, gradients, or accuracy feedback. Across 139 requests, we test handwritten-digit classification, VQE ground-state estimation for spin chains and H$_2$, and MaxCut QAOA, comparing against random weights, classical optimization, and optimization initialized with LLM weights on the same circuit. When parameters have interpretable structure, the LLM matches or approaches the optimizer: it achieves 95--100\% of the energy spectrum on every VQE problem, derives the exact H$_2$ ground state in closed form, finds optimal depth-one QAOA angles for every graph, and reaches 93--96\% accuracy on digits 3 versus 8 with 12--18 hand-written weights, outperforming an optimizer trained on the same ten examples. Its weights are also strong warm starts: optimization reaches its best value after a median of one evaluation rather than hundreds. Allowed to design circuits, the LLM chooses data-dependent rotation chains encoding pixel importance in all 30 cases (one qubit for binary tasks, one chain per qubit for ten classes), reaching 65\% accuracy across ten digits. Yet the approach fails in opaque weight spaces: accuracy drops to chance when fixed circuits exceed 30 weights, while optimization improves. It is also sensitive to gate conventions: 6 of 42 QAOA replies reverse mixing-angle signs and fail. We release all prompts, replies, and scores.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。