                              Quantum Optimization via Gradient-Based Hamiltonian Descent

E. Details of numerical experiments
E.1. Numerical implementations of optimization algorithms
In the numerical experiments, we test four optimization algorithms: Stochastic Gradient Descent with momentum (SGDM),
Nesterov’s accelerated gradient descent (NAG), Quantum Hamiltonian Descent (QHD), and Gradient-based QHD. Our
Python implementation of the numerical algorithms can be found in the supplementary materials.

SGDM. The iterative update rules for SGDM are as follows:

                                               vk = ηk vk−1 − (1 − ηk )sk gk ,
                                               xk = xk + v k ,

where 1 ≤ k ≤ K is the iteration number, ηk is the momentum coefficient, sk is the step size, gk is an unbiased gradient
estimator at xk . We use
                                                             0.4k               s0
                                               ηk = 0.5 +         ,     sk =       .
                                                              K                 k
with s0 = 0.01, v0 = 0, and a uniformly random initial guess x0 . The gradient estimator gk is obtained by adding a unit
Gaussian random noise to the exact gradient ∇f (xk ).

NAG.    The update rules of NAG are as follows:

                                              xk = yk−1 − s∇f (yk−1 ),
                                                        k−1
                                              yk = xk +      (xk − xk−1 ),
                                                        k+2
for 1 ≤ k ≤ K. We choose y0 = 0 and a uniformly random initial guess x0 . The step size is chosen as s = 0.01.

QHD and gradient-based QHD. Both QHD and gradient-based QHD are simulated following Algorithm 1. Note that
QHD is a special case of gradient-based QHD with α = β = γ = 0. The simulation is performed in a mesh grid with
N = 128 grid points per dimension, with the momentum and kinetic operators implemented using FFT, as discussed
in Appendix D. The step size varies with the test problems: We use h = 0.01 for the Styblinski-Tang and Michalewicz
function, h = 0.02 for the Cube-Wave function, and h = 0.005 for the Rastrigin function.

E.2. Non-convex test problems
The test problems used in this paper are defined as follows:

 1. Styblinski-Tang function:
                                     f (x, y) = 0.2 × x4 − 16x2 + 5x + y 4 − 16y + 5y ,
                                                                                     

     where we introduce a normalization factor of 0.2 for a better illustration. This function has a unique global minimizer
     at (x∗ , y ∗ ) = (−2.9, −2.9), with the minimal function value f (x∗ , y ∗ ) ≈ −31.33. The numerical algorithms are
     implemented over the square region {−5 ≤ x, y ≤ 5}.

 2. Michalewicz function:                                             20                          20
                                    f (x, y) = − sin(x) sin x2 /π           − sin(y) sin 2y 2 /π         .
     This function has a unique global minimizer at (x∗ , y ∗ ) = (2.2, 1.57), with the minimal function value f (x∗ , y ∗ ) ≈
     −1.8. The numerical algorithms are implemented over a square region {0 ≤ x, y ≤ π}.

 3. Cube-Wave function:
                                                         2                             2
                                      f (x, y) = cos(πx) + 0.25x4 + cos(πy) + 0.25y 4 .
     This function has 4 global minima, namely, (x∗ , y ∗ ) = (±0.5, ±0.5). The minimal function value is f (x∗ ) ≈ 0.03.
     The numerical algorithms are implemented over a square region {−2 ≤ x, y ≤ 2}.

                                                               18
