Programming Quantum Circuit Parameters with Large Language Models
Tiago de Souza Farias, Caio Moraes Porto, Matheus da Silva Fonseca, Nicolas Armando Cabrera Carpi, Anderson de Araujo Oliveira, Celso Jorge Villas-Boas
Abstract
Large language models (LLMs) have recently demonstrated the ability to generate parameters for variational quantum circuits without conventional optimization. However, the conditions under which this approach is effective remain unclear. Here, we investigate a frozen, general-purpose LLM that generates complete circuit parameter vectors from symbolic circuit and Hamiltonian descriptions, with optional iterative energy feedback. We evaluate the approach on general random Hamiltonians, structured parent Hamiltonians, and molecular systems. For general Hamiltonians, LLM-generated parameters exhibit larger energy errors than conventional Adam optimization, while additional feedback generally provides limited improvement. In contrast, for structured Hamiltonians, the LLM can generate promising low-energy parameter configurations, suggesting that identifiable physical and mathematical structure facilitates parameter inference. We also show that direct LLM predictions of minimum energies can violate the Hamiltonian spectral lower bound, whereas generated circuit parameters allow independent evaluation of physically realizable energy expectation values. Finally, we investigate blind circuit interpretation and find that the LLM can predict measurement outcomes even when it fails to identify the underlying quantum algorithm. These findings highlight the role of problem structure, the limitations of iterative LLM optimization, and the importance of independently verifiable predictions in quantum parameter programming.
Create a lesson
Metadata
- Categories
- quant-ph, cs.LG
- Comments
- 31 pages
Related papers
Small-world networks yield tunable quantum codes at short circuit depth
Shared title terminologyquant-phSamuel Bevins, Gregory Bentsen
Floquet spectra and parameter sensitivity of entanglement in the quantum kicked top
Shared title terminologyquant-phDyari Jarvis, Peter A. Rose, Arjendu K. Pattanayak
Non unitary and nonlinear quantum generative large model design and fast large-scale training without back propagation
Shared title terminologyquant-phTianze Zhu, Xiaofeng Jiang, Min Liao et al.
Quantum Geometric Tensor in Parameter-Dependent Quasi-Hermitian Systems
Shared title terminologyquant-phMing-Zhang Wang, Xu-Yang Hou, Hao Guo
Undecidable quantum storage: no algorithm can tell from the noise rate whether a fixed circuit remembers
Shared title terminologyquant-phSeth Douglas, Nidhal Mghirbi
A Frequency-Learning Interpolation-Based Coordinate Descent Method to Optimize Parameterized Quantum Circuits on Quantum Hardware
Shared title terminologyquant-phJack Mandell, Adam Leicester, Zixu Wang et al.