From Paper to Program: Specification-Guided Implementation of Quantum Many-Body Algorithms with Large Language Model
physics.comp-ph, cond-mat.str-el, cs.AI, cs.HC
Submitted: 2026-04-05
Updated: 2026-09-26
Code: https://github.com/yizhou76-sudo/DMRG-LLM
License: http://creativecommons.org/licenses/by/4.0/
The gist: Turning scientific papers into reliable code requires making implicit computational knowledge explicit.
Terminology
Abstract
Turning scientific papers into reliable code requires making implicit computational knowledge explicit. We introduce and evaluate a human-supervised workflow in which large language models develop and review technical specifications before implementing quantum many-body algorithms. The specifications encode conventions, procedures, scaling requirements, and validation gates for mathematical consistency, physical accuracy, and production-scale performance. For the density-matrix renormalization group, all 16 tested specification--implementation model pairings succeed, compared with 6 of 13 direct attempts; two further attempts succeed with a prose specification. For Pfaffian conversion of Hartree--Fock--Bogoliubov states to matrix product states, on eleven matched model--harness configurations, four self-paired workflow attempts pass and no direct attempts do; across all phases, 11 of 26 workflow attempts pass the audit and validation criteria. Cross-model transfer is asymmetric: one implementation model succeeds with all four specifications written by other models, whereas all four reverse-direction attempts fail. A consolidated specification informed by these experiments supports successful implementations in three previously unsuccessful model--harness configurations. Technical specifications therefore guide scalable implementation and help distinguish paper-to-code ambiguity from limitations in implementation capability. We synthesize these findings into the Paper-to-Program Many-Body protocol, which turns implementation experience into reusable review criteria, validation gates, and reporting practices. Publicly archived prompts, transcripts, specifications, code, and validation records support independent verification and extension to other many-body algorithms.
Sources
- Co-Authoring with AI: How I Wrote a Physics Paper About AI, Using AI
- Matrix Product State Representations
- TeMFpy: a Python library for converting fermionic mean-field states into tensor networks
- SciCode: A Research Coding Benchmark Curated by Scientists
- PaperBench: Evaluating AI's Ability to Replicate AI Research
- Paper2Code: Automating Code Generation from Scientific Papers in Machine Learning
- Quantum Many-Body Physics Calculations with Large Language Models
- Autonomous Quantum Simulation through Large Language Model Agents
- Infinite size density matrix renormalization group, revisited
- Renormalization algorithms for Quantum-Many Body Systems in two and higher dimensions
Related papers
- Refining Machine Learning Potentials through Thermodynamic Theory of Phase Transitions
- Learning Spectrally Optimised Mesh-Free Discretisations
- Feature-preserving Latent-EnKF for Data Assimilation of Flows with Shocks
- chemtrain-deploy: A parallel and scalable framework for machine learning potentials in million-atom MD simulations
- Omnisolver: An extensible interface to Ising spin-glass and QUBO solvers: adding a distributed GPU brute-force plugin
- Breaking the Exascale Barrier for the Electronic Structure Problem in Ab-Initio Molecular Dynamics