CoChat

Quantum many-body physics calculations with large language models

Open access

The DOI matches its Crossref record; 33 of the 33 references it cites were found in a registry or an index.

Abstract

Large language models (LLMs) have demonstrated abilities to perform complex tasks in multiple domains, including mathematical and scientific reasoning. We demonstrate that with carefully designed prompts, LLMs can accurately carry out key calculations in research papers in theoretical physics. We focus on a broadly-used approximation method in quantum physics: the Hartree-Fock method, requiring an analytic multi-step calculation deriving approximate Hamiltonian and corresponding self-consistency equations. To carry out the calculations using LLMs, we design multi-step prompt templates that break down the analytic calculation into standardized steps with placeholders for problem-specific information. We evaluate GPT-4’s performance in executing the calculation for 15 papers from the past decade, demonstrating that, with the correction of intermediate steps, it can correctly derive the final Hartree-Fock Hamiltonian in 13 cases. Aggregating across all research papers, we find an average score of 87.5 (out of 100) on the execution of individual calculation steps. We further use LLMs to mitigate the two primary bottlenecks in this evaluation process: (i) extracting information from papers to fill in templates and (ii) automatic scoring of the calculation steps, demonstrating good results in both cases.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1038/s42005-025-01956-y

Cites

33 of 33 references verified0 citation errors · 0 not checkable

Statistics

Figures

Fig. 1 Schematics. a The fi ve conceptual steps of the derivation of the HF Hamiltonian and self-consistency equations and bite-sized tasks within each step. The HF template consists of the prompt template Ti for each task i . b An example template T 3. The placeholders are highlighted. We turn the template into a prompt for the task 3 by specifying the placeholders for the given paper in the database. c The schematic for generating the prompts from the template with placeholders (empty boxes) using human-supplied information (boxes with dots). d The schematic for generating the prompts from an abstract. We give an abstract to a LLM and query the
Fig. 1 Schematics. a The fi ve conceptual steps of the derivation of the HF Hamiltonian and self-consistency equations and bite-sized tasks within each step. The HF template consists of the prompt template Ti for each task i . b An example template T 3. The placeholders are highlighted. We turn the template into a prompt for the task 3 by specifying the placeholders for the given paper in the database. c The schematic for generating the prompts from the template with placeholders (empty boxes) using human-supplied information (boxes with dots). d The schematic for generating the prompts from an abstract. We give an abstract to a LLM and query theCC-BY · From the PDF
Image 2
CC-BY · From the PDF
Fig. 2 Prompts. a The execution work fl ow using the full prompt set based on the HF template. Each prompt builds on the outputs of all the previous steps. Speci fi cally, the prompt for the task i , Pi incorporates the corrected output Oi -1 of the previous prompt. b The schematic of evaluation and correction for each task i . Each output Oi to the prompt Pi executing the task i is evaluated by the human evaluator
Fig. 2 Prompts. a The execution work fl ow using the full prompt set based on the HF template. Each prompt builds on the outputs of all the previous steps. Speci fi cally, the prompt for the task i , Pi incorporates the corrected output Oi -1 of the previous prompt. b The schematic of evaluation and correction for each task i . Each output Oi to the prompt Pi executing the task i is evaluated by the human evaluatorCC-BY · From the PDF
Image 4
CC-BY · From the PDF
Fig. 4 Execution. a The four-layered rubric system for evaluating an LLM's output Oi in response to each prompt Pi . Adherence : how closely the LLM adheres to the instructions. Rigor : how accurate is the mathematical derivation. Knowledge : how consistent is the LLM's reasoning with the laws of physics. Correctness : how correct is the LLM's response. b The rubric-dependence of the performance. The average score for each rubric layer across all outputs for all papers and their standard deviations. c The task-dependence of the performance. We averaged the score for each prompt across the four rubric layers. Then these average scores were averaged over the prompts belonging to each step of the derivation as broken down in Fig. 2a. d The paper-dependence of the performance on information extraction and
Fig. 4 Execution. a The four-layered rubric system for evaluating an LLM's output Oi in response to each prompt Pi . Adherence : how closely the LLM adheres to the instructions. Rigor : how accurate is the mathematical derivation. Knowledge : how consistent is the LLM's reasoning with the laws of physics. Correctness : how correct is the LLM's response. b The rubric-dependence of the performance. The average score for each rubric layer across all outputs for all papers and their standard deviations. c The task-dependence of the performance. We averaged the score for each prompt across the four rubric layers. Then these average scores were averaged over the prompts belonging to each step of the derivation as broken down in Fig. 2a. d The paper-dependence of the performance on information extraction andCC-BY · From the PDF

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 33 references

Research works printed but not linked: 3

  1. Chen, M. et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374 (2021). · arXiv
  2. Hoffmann, J. et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556 (2022). · arXiv
  3. Achiam, J. et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774 (2023). · arXiv

Cited by

Metadata

Authors
Pan, H., Mudur, N., Taranto, W., Tikhanovskaya, M., Venugopalan, S., Bahri, Y., Brenner, M. P., & Kim, E.-A.
Affiliations
  • Cornell University (US)
  • Google (United States) (US)
Corresponding author
Kim, Eun-Ah
Venue
Communications Physics
Published
2025-01-31
Volume
8
Issue
1
ISSN
2399-3650 (ISSN-L)
OpenAlex
W4406978301
Cited by
15
References
12
Citations by year
2026: 7 · 2025: 7
FWCI
5.66
Type
journal article
Language
en
Open access
Licence
Locations
  • Communications Physics (publishedVersion, cc-by)
  • arXiv (Cornell University) (submittedVersion, public-domain)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
  • arXiv (Cornell University) (public-domain)
Funders
  • National Science Foundation (2118310, PHY-2 019 786, 2019786, 2039380)
  • Gordon and Betty Moore Foundation (GBMF10436)
  • Division of Materials Research (2039380, DMR-2039380)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Artificial Intelligence Applications
  • Physical Sciences › Materials Science › Materials Chemistry › Machine Learning in Materials Science
  • Physical Sciences › Physics and Astronomy › Atomic and Molecular Physics, and Optics › Quantum Computing Algorithms and Architecture
Keywords
large language models, quantum many-body physics, Hartree-Fock calculations, prompt engineering, GPT-4, scientific reasoning, self-consistent equations, Hamiltonian derivation

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.