arXiv:2610.33144quant-phOct 2026

Manuscript Offprint

arXiv:2610.33144

Fully quantum training of parametric circuits with Quantum Hamiltonian Descent

Marco Burato, Leonardo Banchi

Marco Burato 1^{1} and Leonardo Banchi 1,2^{1,2}

1^{1}Department of Physics and Astronomy, University of Florence, via G. Sansone 1, I-50019 Sesto Fiorentino (FI), Italy

2^{2} INFN Sezione di Firenze, via G. Sansone 1, I-50019, Sesto Fiorentino (FI), Italy

Parametric quantum circuits are usually trained by classical, local optimizers, which use the quantum computer only to evaluate the cost function, or its gradient, one point at a time. Quantum Hamiltonian Descent (QHD) takes a different route: in this quantum algorithm for continuous optimization, the parameters become the position of a quantum particle, with the cost function as its potential, and two time schedules control kinetic and potential energy so that the wavefunction explores the whole landscape and tunnels towards the global minimum. QHD, however, assumes a classically computable cost function, and its digital implementation is poorly understood: standard error bounds grow exponentially with the number of qubits per parameter, and the schedules are borrowed from classical optimization. Here we propose to train parametric circuits with QHD entirely on the quantum computer, through an online step in which the qubits encoding the parameters coherently control the circuit on a second register. We prove that, for cost functions with a smooth periodic extension, including those of parametric circuits, the simulation error admits a bound independent of the grid resolution, and that for circuits the bound grows at most linearly with the number of parameters. We also show that the ideal dynamics depends on the two schedules only through a single curve, which controls the adiabaticity of the search, and that the remaining freedom can be used to minimize the gate count. Simulations on benchmark functions and parametric circuits show that, at equal cost, schedules designed in this way markedly increase the probability of finding the global minimum.

1 Introduction

Training a parametric quantum circuit is a non-convex optimization problem. In variational quantum algorithms and quantum machine learning models [1, 2, 3], a cost function f(x)f(\boldsymbol{x}), typically the expectation value of an observable on a state prepared by a circuit with rotation angles x\boldsymbol{x}, is minimized by a classical optimizer, with gradients estimated from measurements through the parameter-shift rule [4, 5, 6, 7]. The resulting landscapes are rugged, with many local minima [8] and narrow gorges [9], and in large circuits they may flatten into barren plateaus [10]. Therefore, the success of gradient-based optimizers is

Marco Burato: marco.burato@unifi.it

Leonardo Banchi: leonardo.banchi@unifi.it often limited. Moreover, the quantum computer is only used to evaluate f and its gradient at one point at a time, while the optimization itself is entirely classical. Gradient descent is the de facto standard in training deep neural networks thanks to the backpropagation algorithm, but getting backpropagation-like scaling in the quantum setting is challenged by the destructive nature of quantum measurements [11]. Several proposals have explored alternative hybrid quantum-classical training schemes [12, 13], or the use of quantum resources in the optimization itself, for instance through quantum algorithms for gradient-based methods [14, 15].

Quantum Hamiltonian Descent (QHD) [16] takes a different route. Building on the variational formulation of accelerated gradient methods in terms of a Bregman Lagrangian [17], QHD quantizes the corresponding classical dynamics: the optimization variables become the position of a quantum particle, whose wavefunction evolves under a Hamiltonian H^(t)=a(t)p^2/2+b(t)f(x^)\hat{H}(t) = a(t) \hat{\mathbf{p}}^2 / 2 + b(t) f(\hat{\mathbf{x}}), in which the kinetic term is gradually switched off and the cost function is switched on as a potential. Starting from a uniform superposition over the domain, the state explores the whole landscape at once, can tunnel through barriers between valleys, and, if the evolution is slow enough, ends up concentrated around the global minimum, as in adiabatic quantum computation [18]. QHD has been reported to compare favorably with classical solvers on a variety of non-convex benchmarks [16], and has been extended to non-smooth problems [19].

Two questions are central to implementing QHD on a digital quantum computer. The first one concerns the cost and the accuracy of the simulation, and arises regardless of whether we are optimizing “classical functions” or parametric quantum circuits. The parameters are discretized on a grid of 2q2^{q} points per dimension, encoded in q qubits, and the evolution is simulated with spectral methods [20] and product formulas. The error of a product formula is controlled by the commutator between the kinetic and potential terms, which contains the momentum operator: its norm grows with the grid resolution, so that standard bounds, based on operator norms, would predict an error growing exponentially with q. Moreover, QHD depends on two time schedules, a(t)a(t) and b(t)b(t), which have so far been borrowed directly from classical optimization algorithms [16], rather than designed on the basis of the cost of the simulation or of the structure of the landscape. The second question concerns the cost function. In the original formulation f is assumed to be known and efficiently computable on a classical computer, so that the potential step can be implemented by reversible arithmetic. When f is defined by a parametric quantum circuit, instead, it is only accessible through measurements, and estimating it on the whole grid would require a number of circuit evaluations exponential in the total number of qubits.

In this work we propose to use QHD to train parametric quantum circuits, running the whole optimization on the quantum computer, and we address both questions. We simulate QHD in the interaction picture of the kinetic term [21], which is integrated exactly with quantum Fourier transforms, and Trotterize the rotated potential. We prove that, for cost functions whose periodic extension is sufficiently smooth, the resulting error bound does not grow with q. The reason is that the error depends on the momentum of the actual state, not on the largest momentum of the grid, and the kinetic energy of the state stays bounded independently of the grid, as long as the ratio r=b/ar = b/a of the schedules is non-decreasing. Generalizing a change of variables of Ref. [19], we then observe that, in terms of the kinetic time τ(t)=∫0ta(t′) dt′\tau(t) = \int_0^t a(t') \, dt', the ideal dynamics depends on the schedules only through the curve r(τ)r(\tau), and that the remaining freedom, a gauge, can be used to minimize the number of Trotter steps at fixed error bound. This separates the design of the schedules into two independent problems: the choice of the curve, which determines the outcome of the algorithm and should spend kinetic time in the search window where tunneling between the valleys decides the success probability, and the choice of the gauge, which determines the gate count.

For cost functions defined by parametric circuits, which we call “quantum functions”, we introduce an online implementation of the potential step. The register on which QHD is simulated, which encodes the parameters, controls the parametric rotations of the circuit, which acts on a second register that is reset after each step; in this way, the phases e−iφf(x^)e^{-i\varphi f(\hat{x})} of the potential step are applied without ever estimating ff. The error of this step amounts to a loss of coherence in the position basis, with a bound that depends neither on qq nor on the number of parameters dd. Since quantum functions built from Pauli rotations are trigonometric polynomials, the Trotter error bound also becomes explicit, and grows at most linearly with dd. The idea of replacing the parameters of a quantum circuit with a quantum register goes back at least to Ref. [22], where a program state is optimized so that the circuit simulates a target quantum channel [23]. There, however, the optimization over the program state was carried out classically, whereas here the parameter register itself evolves under the QHD dynamics.

The paper is organized as follows. In section 2, after reviewing QHD and its convergence properties, we describe its digital simulation, the error bound, the reparametrization of time and the choice of the schedules. In section 3 we test the method on standard benchmark functions for global optimization, and in section 4 we introduce the online procedure for quantum functions, whose numerical results are presented in section 4.2. We conclude in section 5. Proofs and technical details are collected in the appendices.

References (40)