将量子多体论文转化为可执行代码,提升正确率并诊断实现瓶颈。
From Paper to Program: Knowledge Externalization and Bottleneck Diagnosis in AI-Assisted Quantum Many-Body Programming

- 通过人工介入的分阶段流程,将论文知识显式化为技术规范。
- 规范指导实现的正确率达11/26,远超直接编码的0/26。
- 适合需要高可靠性的量子算法开发与代码验证的研究者。
从文献中实现量子多体算法时,因隐含的索引顺序、规范选择、费米子符号、收缩序列和缩放策略等决策而极易出错。本文将此问题建模为知识外化挑战,测试了一种分阶段的人机协同工作流:先将论文转化为经审查的技术规范,再生成代码。以Schollwöck综述中的DMRG算法为基准,规范引导的实现成功通过全部16组模型配对,而直接尝试仅成功6/13次;即使采用纯文本规范,只要保留外化内容,性能仍显著提升。基于五页快报的HFB态到MPS的帕夫利亚转换,采用独立的NumPy/SciPy/Matplotlib实现进行封闭世界压力测试,该工作流达成11/26审计通过,而直接提示则全失败。跨规范迁移呈非对称性:GPT-5.5能成功实现4个非GPT规范,反之则在4例中失败。结果揭示两类瓶颈:论文到代码的模糊性(可通过显式规范缓解)与实现代理能力残余(无法通过迭代规范消除)。由此提出的《论文到程序多体》协议,融合专家评审、溯源检查、生产级门控与物理预言机,构建从理论发表到验证代码的可审计路径。
原文摘要 · Abstract (English)
Implementing quantum many-body algorithms from the literature is fragile when executable correctness depends on tacit choices of index order, gauge, fermionic sign, contraction sequence, and scaling strategy. We formulate this as a knowledge-externalization problem and test a staged, human-in-the-loop workflow that converts source papers into reviewed technical specifications before code generation. DMRG from Schollw{ö}ck's review serves as calibration: specification-guided implementations pass all 16 model pairings, compared with 6/13 direct attempts, while a prose-specification ablation retains the improvement when externalized content is preserved without \LaTeX{} form. Pfaffian conversion of HFB states to MPS from a five-page Letter provides a closed-world stress test using standalone NumPy/SciPy/Matplotlib implementations without supplied tensor-network code. The workflow yields 11/26 audited passes, versus none under direct prompting. Cross-specification transfer is asymmetric: GPT~5.5 implements four non-GPT specifications successfully, whereas the reverse direction fails in four tested cases. These results support two distinguishable bottlenecks: paper-to-code ambiguity, reduced by explicit specification, and residual implementation-agent capability. Iterative meta-specification shifts but does not remove the latter. The resulting \emph{Paper-to-Program Many-Body} protocol couples expert review, provenance checks, production-scale gates, and physics oracles to provide an auditable pathway from published many-body theory to validated code.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。