QFoldAgent: An Autonomous Quantum Optimization Multi-Agent System for Protein Structure Prediction

Winson Chen, Yuqi Zhang, Sixu Chen, Nuo Xu, Qiang Guan, Caiwen DingarXiv 2026

TL;DR

QFoldAgent is an autonomous, closed-loop multi-agent framework that uses Large Language Models (LLMs) to dynamically tune Hamiltonian penalty weights for quantum protein structure prediction. By replacing slow, manual expert tuning with an iterative feedback loop driven by energy diagnostics and structural validation signals, the system significantly improves folding accuracy and structural validity under realistic quantum noise.

What Problem Does This Paper Address?

In hybrid quantum-classical protein folding, biological constraints (like avoiding steric clashes or maintaining correct chirality) are mapped onto a mathematical objective function called a Hamiltonian. The success of quantum algorithms like the Variational Quantum Eigensolver (VQE) depends heavily on tuning the scalar penalty weights ($\lambda$) that balance these constraints.

Traditionally, this tuning is a tedious, manual "human-in-the-loop" process where domain experts inspect intermediate structures and tweak weights by trial-and-error (as shown in Figure 2). Simply replacing the human with a one-shot LLM prompt doesn't work; without iterative feedback, standard LLMs actually perform worse than static baselines (see Figure 1). QFoldAgent addresses this bottleneck by embedding LLM agents directly into a closed optimization loop to autonomously adapt the Hamiltonian for each unique amino acid sequence.

Fig. 2. Traditional human-in-the-loop workflow for Hamiltonian refinement. A domain expert manually defines the Hamiltonian and experiment setup, then inspects predicted structures and validation metrics before revising the formulation for the next iteration. Because each round depends on experimental results and expert review, the process is slow and labor intensive.

Methods

The QFoldAgent architecture consists of a 5-stage closed-loop pipeline:

  1. Designer Agent: An LLM profiles the input amino acid sequence (analyzing composition, motifs, flexibility, and energy tendencies) and proposes initial penalty weights ($\lambda_{chiral}, \lambda_{back}, \lambda_1$).
  2. Quantum Folding Pipeline: The system compiles the penalized Hamiltonian and executes a VQE-based optimization under simulated quantum noise (using Qiskit Aer). The resulting quantum states are decoded into 3D lattice conformations and reconstructed into full-atom models using MODELLER.
  3. Metrics Extraction: The pipeline extracts classical optimization diagnostics (final energy, convergence quality) and biological validation signals from MolProbity (Ramachandran statistics, $C_\beta$ outliers). Crucially, ground-truth structural metrics like RMSD are never exposed to the agents.
  4. Feedback Agent: An LLM acts as a judge, analyzing the metrics and full cycle history to provide a structured rationale and propose refined penalty values for the next iteration.
  5. Final Selection: The loop repeats for $k$ cycles, and the pipeline outputs the final predicted structure from the cycle that achieved the lowest VQE final energy.
Fig. 3. Overview of the closed-loop quantum-classical pipeline for lattice-based protein structure prediction.

Datasets

The framework was evaluated on two distinct tracks:

  • QDockBank Benchmark: A dataset of 55 protein-ligand complexes with known, ground-truth 3D structures, specifically focusing on 5-residue binding-site fragments.
  • Unseen Sequence Set: 100 newly generated, coverage-optimized 5-residue peptide sequences designed to maximize compositional and biophysical diversity, used to test generalization without reference structures.

Both datasets were tested under two Qiskit Aer noise presets ("Small" and "Large") to simulate the error regimes of current superconducting quantum processors.

Key Insights and Ideas

  • The Power of the Loop: One-shot penalty selection fails, but iterative feedback enables directed optimization. As seen in Figure 6, the agent-controlled pipelines show a systematic, monotonic improvement in the energy-to-penalty ratio ($E/P$) across cycles, whereas independent LLM sampling shows no directed trend.
  • Self-Correcting Behavior: Stronger models (specifically GPT-5.2) demonstrate an aggressive exploration strategy early on by lowering total penalties, before learning the structural validity boundary and adjusting upward to satisfy geometric constraints by the final cycles.
  • Noise as a Forgiving Landscape: Counter-intuitively, noisier quantum conditions occasionally yielded higher improvement rates for the agent. The authors hypothesize that noise roughens the energy landscape, creating more opportunity for the feedback agent to steer the classical optimizer away from poor local minima.
Fig. 6. E/P trajectory on the 55 ground-truth targets. Agent configurations (solid) improve systematically from cycle 1 to cycle 3; LLM-only baselines (dashed) show no directed trend.

Key Results

  • Accuracy Gains: On the QDockBank benchmark, QFoldAgent reduced the median RMSD from 3.64 Å (baseline) to 3.20 Å. The most significant gains occurred on the hardest targets, driving several cases below the near-native threshold of 2 Å where the baseline failed completely (Figure 5).
  • Validity Improvements: On the unseen sequence set, the closed-loop framework boosted structural validity from 87.5% to 98.7%, successfully recovering 87% of initially invalid structures within 3 cycles.
  • Controller Hierarchy: GPT-5.2 emerged as the strongest refinement engine, consistently reducing mean final energy across cycles and outperforming GPT-4o and Qwen3.5 in optimization consistency.
Best RMSD improvements on difficult QDockBank targets

Limitations and Future Work

While QFoldAgent serves as a robust proof-of-concept for agentic quantum computing, it is currently limited to 5-residue fragments on a simplified tetrahedral lattice.

The authors note that the framework is highly modular; the simulation layer can scale to tensor-network or actual IBM Quantum hardware backends without changing the agent loop. Future work aims to expand the agents' responsibilities beyond penalty tuning to include sequence-specific quantum circuit design, such as autonomously selecting ansatz architectures, circuit depth, entanglement structures, and shot allocations.

Summary updated

BibTeX
@misc{chen2026qfoldagent,
  author = {Winson Chen and Yuqi Zhang and Sixu Chen and Nuo Xu and Qiang Guan and Caiwen Ding},
  title = {{QFoldAgent: An Autonomous Quantum Optimization Multi-Agent System for Protein Structure Prediction}},
  year = {2026},
  eprint = {2607.22549},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.22549},
}
Figure