                               Quantum Optimization via Gradient-Based Hamiltonian Descent

of overall runtime, gradient-based QHD remains asymptoti-
cally comparable to NAG, which justifies our comparison
based on the iteration count.
To evaluate the classical methods such as SGDM and NAG,
we estimate the expectation values and success probabilities
using a sample of 1000 independent runs. Each run begins
with a uniformly random initial guess and proceeds for k
iterations. For the quantum methods, since the probability
density function can be explicitly derived from the quantum                 (a) Function value             (b) Gradient norm
state vector, expectation values and success probabilities are       Figure 3. Numerical comparison of various optimization algo-
computed via numerical integration.                                  rithms on the convex objective function (19), including function
                                                                     values and success probability.
The numerical simulations of the quantum algorithms, in-
cluding QHD and gradient-based QHD, are performed on                 6.3. Non-convex optimization
a MacBook equipped with an M4 chip. Additional de-
tails on the numerical methods employed are provided Ap-             More details on these test problems are available in Ap-
pendix E.1.                                                          pendix E.2.
                                                                     We now turn our attention to the numerical comparison
6.2. Convex optimization                                             of gradient-based QHD against three baseline algorithms,
To evaluate performance, we conduct a numerical com-                 including SGDM, NAG, and QHD, in non-convex optimiza-
parison of gradient-based QHD against three baseline al-             tion settings. Non-convexity introduces significant chal-
gorithms, including SGDM, NAG, and QHD, for convex                   lenges for classical first-order methods, as local gradient
optimization. The test function used is                              information alone is often insufficient to distinguish the
                                                                     global minimum from other spurious local optima.
                          (x + y)4   (x − y)4
             f (x, y) =            +          ,          (19)        To illustrate these challenges, we evaluate a variety of non-
                            256        128                           convex optimization problem instances characterized by
which is a convex yet non-strongly convex function, with             diverse landscape features:
a singular Hessian at its unique minimum (0, 0). Notably,
the gradient of this function does not satisfy the Lipschitz          (i) Michalewicz function (Figure 4): This function fea-
continuity condition. This flat geometry presents signifi-                tures a flat plateau and a unique global minimum hid-
cant challenges for classical methods that rely heavily on                den within a sharp valley, posing a difficult search
curvature information, making it a suitable benchmark for                 problem.
comparative evaluation. All methods are executed with a
fixed step size h = 0.2.4 For the quantum variants, the              (ii) Cube-Wave function (Figure 5): With over ten local
initial evolution time is set to t0 = 1. The parameters of                minima (four of which are global minima) concentrated
gradient-based QHD are configured as α = −0.1, β = 0,                     within the cube [−2, 2]2 , this function exemplifies a
and γ = 5.                                                                rugged landscape.

The performance of these optimization algorithms is visu-            (iii) Rastrigin function (Figure 6): This function presents
alized in Figure 3, where two key metrics are employed to                  a highly oscillatory landscape with a global minimum
access convergence: the average function values E[f (Xk )]                 at the origin, making it notoriously challenging for
(depicted in the left subplot) and the average gradient norm               optimization algorithms.
E[∥∇f (Xk )∥2 ] (depicted in the right subplot). Both quan-          Due to these intricate characteristics, all three problems are
tities are tracked over iterations 1 ≤ k ≤ 25. The results           recognized as particularly difficult for classical first-order
reveal distinct convergence behaviors. While the (classi-            methods. Additional details about these test functions are
cal) QHD exhibits a slower convergence rate compared to              provided in Appendix E.2.
NAG, the gradient-based QHD stands out by achieving a
remarkably faster convergence rate, outperforming all other          For the two quantum algorithms, the evolution time starts
algorithms. This superior performance highlights the ef-             from t0 = 0. In gradient-based QHD, the parameters are set
fectiveness of incorporating gradient-based techniques into          to α = −0.05, β = 0, and γ = 5.
QHD, particularly for challenging optimization landscapes.           Despite the diversity of non-convex test problems, gradient-
   4
    We have tested various step sizes (h ∈ [0.05, 0.5]) for          based QHD consistently delivers robust and favorable per-
gradient-based QHD and observed similar convergence behavior.        formance. Compared to both QHD and the classical algo-
To maintain consistency, we fix h = 0.2 in all comparisons.          rithms, it achieves a significantly faster convergence rate

                                                                 8
