Skip to content
Quantum.world

Research

QuantumMatterExplorer: An Autonomous Agent for the Discovery of Quantum Many-Body Phases of Matter

Overview Research area: Computational quantum many-body physics, specifically the automated mapping of quantum phase diagrams, combined with large-language-model (LLM) agent design. Technical level: A

arXiv
2610.32001
Published
2026-10-22
Authors
Jannes Nys, Andrew Jreissaty, Juan Carrasquilla

AI summary

Overview

Research area: Computational quantum many-body physics, specifically the automated mapping of quantum phase diagrams, combined with large-language-model (LLM) agent design.

Technical level: Advanced. The paper assumes familiarity with the density-matrix renormalization group (DMRG), exact diagonalization (ED), order parameters, finite-size scaling, and modern LLM agent architectures (tool calling, context compaction, subagents).

Scope (one sentence): The paper introduces QuantumMatterExplorer, an LLM-based autonomous agent that receives only a quantum spin Hamiltonian and its parameter ranges and, within an eight-hour compute budget, returns a phase diagram derived entirely from its own DMRG and exact-diagonalization simulations.

What This Paper Is About

Mapping the phase diagram of a new quantum Hamiltonian normally requires expert judgment at every step: deciding which observables reveal order, where in parameter space to compute, which system sizes to use, and how to distinguish genuine order from finite-size artefacts. The authors build an agent that makes these decisions itself, given nothing more than the Hamiltonian and the ranges of its couplings. The goal is open-ended computational discovery rather than reproduction of a known figure, and the test case is a two-dimensional phase diagram published only recently, which is unlikely to appear in any model's training data.

Key Contributions

  1. Autonomous phase-diagram exploration. The agent is given a Hamiltonian and parameter ranges only, and itself selects the observables, order parameters, parameter-space cuts, and system sizes, combining DMRG calculations with independent exact-diagonalization cross-checks.

  2. Adaptive rather than scripted exploration. Intermediate numerical results drive the next decision: the agent refines parameter cuts, changes system sizes, and performs finite-size extrapolations as evidence accumulates, instead of executing a fixed protocol.

  3. Expert knowledge injected through "skills." Because standard LLMs lack training data on numerical phase exploration, the agent is equipped with compressed documentation for the ITensors, ITensorMPS, and XDiag libraries and with guidance on the stages of a phase-diagram study; a controlled ablation quantifies the effect.

  4. A controlled comparison of LLM backbones. Three locally served open-weight models (Gemma 4-31B-it, Qwen3.6-27B, gpt-oss-120b) and two cloud-hosted models (DeepSeek-V4-Pro, GPT-5.6-Luna) are run under an identical protocol and scored on how accurately they locate known phase transitions.

Main Findings

  • Accurate on a solvable benchmark, weaker on a BKT transition. All agent backends reliably reproduced the phase transition of the anisotropic XY chain in a transverse field (exact critical field h_c = 1 from the free-fermion solution), but struggled more to locate the Berezinskii–Kosterlitz–Thouless transition between the gapless and dimerized phases of the J1–J2 chain, whose dimerization point is α_c ≈ 0.2411 (numerical value from Ref. [53]).

  • A small open model was the strongest backbone. Qwen3.6-27B performed best on locating the known transitions, which the authors attribute to a combination of strong coding ability with good exploration and analysis skills.

  • One larger model failed outright. gpt-oss-120b (117B parameters in a mixture-of-experts architecture, 5.1B active per token), served locally, failed to produce a working DMRG pipeline at either medium or maximum reasoning effort, even with the itensor-dmrg skill available.

  • Skills measurably help. In the ablation on the XY Hamiltonian with a Gemma 4 backend, providing the itensor-dmrg skill reduced the Julia error rate, the total number of Julia calls, and the absolute number of failed calls; one run without the skill exhausted the 8-hour budget through failed coding attempts.

  • Self-validation before trusting any result. On the target model the agent checked an isolated two-site exchange (N = 2, J2 = 0, D = 0) against the exact total-spin spectrum, reproducing the ground-state energy E0 = sin θ − cos θ = −0.221231742082474 to within 3 × 10⁻¹⁷, repeated the check with only the next-nearest-neighbor coupling active (N = 3, J1 = 0, J2 = 1, D = 0), wrote its own ED code cross-checked at N = 4, and identified symmetries numerically (total S^z_tot, global π rotations, time reversal, reflection) while ruling out S^x_tot and S^y_tot at D ≠ 0 and confirming full SU(2) at D = 0. None of these symmetries were supplied in the input.

  • Self-correction during the run. The agent found and fixed two of its own errors: 11 initial survey points had been computed in the wrong S^z_tot sector, and the connected quadrupole correlator contained an incorrect expansion; the affected results were excluded and the survey regenerated.

  • Five candidate regions for the undocumented model. For the frustrated bilinear-biquadratic spin-1 J1–J2 chain with single-ion anisotropy at θ = 0.2π, J1 = 1, J2 ∈ [0,1], D ∈ [−4,4] with open boundary conditions, the agent proposed candidate Néel (Ising antiferromagnetic), Haldane, and dimerized regions plus an unresolved region, in broad agreement with the recently published reference phase diagram (Ref. [37]).

  • Finite-size evidence for Néel order. The transverse peak m_xx² decays approximately as 1/N, while the longitudinal peak m_zz² stays between 0.38 and 0.41 from N = 24 to N = 60 at (J2, D) = (0, −2) and (0, −4); at (0, −1), extrapolation in 1/N gives m_zz² ≈ 0.431, and at (0.2, −2) it gives 0.113, roughly four times smaller, so the Néel assignment there rests on a weaker signal.

  • Finite-size evidence for dimer order. At (J2, D) = (0.4, −4), the staggered bond alternation d_bond falls only from 0.383 at N = 24 to 0.340 at N = 60, extrapolating to about 0.313; the connected bond structure factor at N = 24 is S_c^BB(π) = 0.0441 there versus 0.0153 at (0, 0) in the proposed Haldane region.

  • Haldane signatures and a proposed boundary. At (0, 0) the nonlocal string correlator grows in magnitude from 0.144 at N = 24 to 0.185 at N = 60, extrapolating to |O_str| ≈ 0.206; along D = 0 at N = 48 it falls from 0.0450 at J2 = 0.4 to 0.0084 at J2 = 1, prompting the agent to propose a boundary near J2 ≈ 0.5.

  • Incommensurate correlations detected. The ordering wavevector q* is π in the Néel corner and moves continuously through the frustrated regime, reaching 0.665π ≈ 2π/3 along D = 0.

  • Boundary geometry inferred, not assumed. Adaptive cuts in D at J2 = 0.2, 0.4, and 0.8 (N = 24) show sharp features shifting toward more negative D as J2 increases, bracketed at D ∈ [−1.50, −1.25], [−2.00, −1.75], and [−2.50, −2.25] respectively. The agent used this systematic shift to infer the negative slope of the boundary; the abrupt changes are qualitatively consistent with the first-order dimerized–Floating-2 transition of Ref. [37], although the agent did not gather enough evidence to determine the transition order.

  • Scale of the computation. The initial survey covered 42 points at N = 24 with maximum bond dimension 384, followed by adaptive cuts at five values of J2 and size ladders up to N = 60; in total 222 DMRG calculations spanning 158 distinct (J2, D, N) points, covering 83 distinct (J2, D) coordinates at N = 4, 12, 24, 36, 48, and 60, supplemented by ED at N = 4, 6, and 8.

  • Run behavior. A representative GPT-5.6-Luna run at high reasoning effort made 653 tool calls and 453 model calls, with the first DMRG calls near 0.2 h, DMRG analysis running to about 7 h, a physics critic spawned between roughly 0.1 and 0.3 h and again repeatedly in the final 30 minutes, two context compressions near 3.5 h and 6.9 h, context held below 20% of the window, and the run finalized at 7.7 h against the 8-hour limit.

  • Cost profile. Input tokens substantially outnumber output tokens across all backbones, all backbones consume similar input budgets, and Qwen3.6 tends to generate considerably more output; token figures are averaged over the XY and J1–J2 Hamiltonians with 4 repeated runs each.

Methodology in Plain English

The starting point is the well-known ReAct pattern: a language model reasons, calls a tool, looks at the result, and reasons again. The authors deliberately use a single "deep agent" with access to many tools rather than a team of specialized agents wired together, because partitioning a study across agents tends to lose information between them. The agent can spawn subagents for bounded jobs — a general-purpose helper, a data-analyst that digests large data files so they never enter the main context, and a physics-critic that reviews the plan and conclusions in an isolated context so it is not biased by the main agent's reasoning.

Two mechanisms make multi-hour runs feasible. First, the agent writes an elaborate plan to a file (plan.md) that survives automatic compression of the conversation history, guarding against losing earlier constraints or compounding an early unchecked assumption. Second, the agent keeps a lab-notebook-style record of every simulation performed. A to-do list lets it plan concrete substeps, and an optional human-in-the-loop channel lets a person edit the plan (not used in the experiments reported here).

The workflow follows four stages preceded by a validation gate: (0) reproduce a known limit and cross-check the Hamiltonian implementation against independent exact diagonalization; (1) a cheap coarse survey at small system size to find where things change; (2) denser sampling near candidate boundaries at larger sizes; (3) assign phases from order parameters, correlators, and entanglement; (4) extrapolate to the thermodynamic limit and return to a denser grid if a boundary moves with system size or a label contradicts the extrapolation. Expensive large-system calculations are concentrated in windows around candidate boundaries rather than spread uniformly over the parameter range.

Expertise enters through skills — short, always-visible descriptions of, for example, how to run DMRG in ITensor without falling into common pitfalls, which the agent can read in full when needed. The pool is kept deliberately small because skill selection itself degrades when the library grows too large. The whole system is backend-agnostic and only requires that the model support tool calling.

Why This Matters

Impact on research. Phase-diagram mapping is slow, expert-dependent, and error-prone, and the bottleneck is increasingly interpretation rather than raw compute. The paper shows that the planning-and-interpretation layer can be automated well enough to produce a defensible two-dimensional phase diagram of a model published only months earlier, with finite-size analysis and self-correction, inside a single working day. It also draws a clear line between reproduction tasks (where the target figure is known in advance) and open-ended exploration, and reports where current models still fall short — notably BKT transitions and one larger open-weight model that could never get a DMRG pipeline running.

Real-world applications (as implications of this work, not claims demonstrated in it):

  • Rapid scouting of candidate phase diagrams for newly synthesized or proposed quantum magnets before committing experimental beamtime.
  • Triaging model Hamiltonians in condensed-matter theory, producing a first-pass map and a reproducible audit trail of every simulation run.
  • Automated generation of validated simulation code and analysis notebooks for DMRG studies, lowering the entry cost to tensor-network methods.
  • Benchmarking and selecting LLM backends for scientific computing, since the paper reports that a smaller open model outperformed larger alternatives on locating known transitions.

Industry relevance. For groups running large simulation campaigns, an agent that allocates compute adaptively — cheap surveys first, expensive large-system runs only near boundaries — bears directly on cost. The finding that locally served open-weight models can be competitive matters for organizations that cannot send data to cloud APIs, and the reported token breakdown by agent type gives a practical handle on inference cost.

Future Directions

  • Closing the BKT gap. All backends located the exactly known XY transition but struggled with the Berezinskii–Kosterlitz–Thouless transition in the J1–J2 chain; better diagnostics or scaling protocols for infinite-order transitions are an obvious target.
  • Determining transition order. For the target model the agent found abrupt changes qualitatively consistent with the first-order dimerized–Floating-2 transition of Ref. [37] but explicitly did not obtain sufficient evidence to establish the order — an open capability question.
  • Reliability of weaker backends. gpt-oss-120b never produced a working DMRG pipeline at either medium or maximum reasoning effort, raising the question of whether stronger skills, different scaffolding, or targeted post-training can bring such models into range.
  • Beyond a single run and a single model class. The undocumented-model study is a single run with one backbone and an eight-hour cap; whether the approach generalizes across many runs, other Hamiltonians (higher spin, fermionic, two-dimensional), and longer budgets is untested here.

Target Audience

Condensed-matter and quantum-many-body researchers who use DMRG or exact diagonalization and want to automate the exploratory phase of their work; AI-for-science researchers studying long-horizon agents, context management, and subagent design; and computational scientists evaluating whether LLM agents can be trusted to plan and interpret numerical studies rather than merely execute prescribed steps. Readers without a background in tensor-network methods will find the physics sections dense, but the agent-architecture and ablation sections are accessible to anyone familiar with tool-using LLM systems.

Authors’ abstract

Mapping the phase diagram of a new quantum Hamiltonian demands expert judgement at every step: which observables to measure, where in parameter space to compute, or how to separate genuine order from finite-size artefacts. We introduce QuantumMatterExplorer, an autonomous agent that takes only a Hamiltonian and its parameter ranges as input and returns a phase diagram obtained from its own numerical simulations. The agent is built on a large language model and is designed to reason over a long horizon, maintain a persistent written plan, and drive a set of computational tools, with density-matrix renormalization group (DMRG) calculations cross-checked against independent exact diagonalization. The agent combines a large language model with persistent planning, a library of expert computational-physics skills, and density-matrix renormalization group calculations validated against independent exact diagonalization. It adaptively selects quantities to evaluate, refines parameter scans, and performs finite-size analyses as evidence accumulates. After validating the approach on Hamiltonians with known transitions, we challenge it with a frustrated bilinear-biquadratic spin-1 chain with single-ion anisotropy, whose two-dimensional phase diagram was published only recently and is unlikely to appear in any training corpus. Given no hint about the expected physics, the agent proposes which observables to probe, and identifies candidate Néel, Haldane and dimerized phases, in broad agreement with the reference phase diagram. It also detects incommensurate correlations and infers the frustration-dependent geometry of the phase boundaries, all within an eight-hour compute budget. These results open a practical route to the autonomous computational discovery of new phases of quantum matter.

Read the original paper