Weight-Space Programming of Variational Quantum Circuits: Large Language Models Write Quantum Circuit Parameters Without an Optimizer
New in Mechanistic interpretability; no direction yet. Mechanistic interpretability
Abstract (arXiv)
Variational quantum algorithms (VQAs) optimize circuit angles through repeated quantum-device evaluations, often facing vanishing gradients and high optimization costs. We ask whether a large language model (LLM) can write these angles directly. Extending *weight-space programming* from classical networks to quantum circuits, we provide a frontier LLM (gpt) with the problem, circuit, and gate conventions. Its angles are executed exactly as written, without returning losses, gradients, or accuracy feedback. Across 139 requests, we test handwritten-digit classification, VQE ground-state estimation for spin chains and H2, and MaxCut QAOA, comparing against random weights, classical optimization, and optimization initialized with LLM weights on the same circuit. When parameters have interpretable structure, the LLM matches or approaches the optimizer: it achieves 95--100% of the energy spectrum on every VQE problem, derives the exact H2 ground state in closed form, finds optimal depth-one QAOA angles for every graph, and reaches 93--96% accuracy on digits 3 versus 8 with 12--18 hand-written weights, outperforming an optimizer trained on the same ten examples. Its weights are also strong warm starts: optimization reaches its best value after a median of one evaluation rather than hundreds. Allowed to design circuits, the LLM chooses data-dependent rotation chains encoding pixel importance in all 30 cases (one qubit for binary tasks, one chain per qubit for ten classes), reaching 65% accuracy across ten digits. Yet the approach fails in opaque weight spaces: accuracy drops to chance when fixed circuits exceed 30 weights, while optimization improves. It is also sensitive to gate conventions: 6 of 42 QAOA replies reverse mixing-angle signs and fail. We release all prompts, replies, and scores.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Builds on 6 of its 25 references that are in the map. Submitted 8 Nov 2026.
Builds on
6 of 25 references.
References · 6
- 2016HyperNetworkscited by 1,085
- 2023Large Language Models as Optimizerscited by 985
- 2020Variational Quantum Algorithmscited by 715
- 2018Supervised learning with quantum enhanced feature spacescited by 697
- 2018Barren plateaus in quantum neural network training landscapescited by 660
- 2020The effect of data encoding on the expressive power of variational quantum machine learning modelscited by 356
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025Agent-Q: Fine-Tuning Large Language Models for Quantum Circuit Generation and Optimization
- 2026Discovering state-of-the-art quantum circuits with large language models
- 2026An LLM System for Autonomous Variational Quantum Circuit Design
- 2025Quantum Data Encoding and Variational Algorithms: A Framework for Hybrid Quantum Classical Machine Learning
- 2025Quantum Circuit Reasoning Models: A Variational Framework for Differentiable Logical Inference
- 2021Variational Quantum Classifiers Through the Lens of the Hessian
- 2025TensorRL-QAS: Reinforcement learning with tensor networks for improved quantum architecture search
- 2025Large Language Model Scaling Laws for Neural Quantum States in Quantum Chemistry