qBang¶
Implements qBang (quantum Broyden adaptive natural gradient), a natural-gradient optimizer for variational quantum algorithms that interweaves a Broyden-approximated metric with Adam-style momentum.
The quantum Fisher information matrix is treated as slowly varying, so instead of recomputing it each step, qBang maintains a metric \(B_k\) updated by a rank-1 low-pass filter with rate \(\varepsilon_k\), and propagates its inverse directly through the Sherman-Morrison identity. The descent direction is a bias-corrected, variance-normalized momentum vector (as in Adam), preconditioned by \(B_k^{-1}\). This keeps each step at \(\mathcal{O}(n_\theta)\) circuit evaluations while retaining natural-gradient geometry to navigate flat energy landscapes (barren plateaus).
where \(\theta\) are the circuit parameters, \(\eta\) the learning rate, \(g_k = \nabla \mathcal{L}(\theta_k)\) the cost gradient, \(m_k, v_k\) the first and second moment estimates with decays \(\beta_1, \beta_2\), \(\hat m_k, \hat v_k\) their bias-corrected forms, \(\{p_k\}_l\) the per-coordinate normalized step (\(\kappa\) a small stabilizer), \(B_k\) the Broyden-filtered metric approximating the quantum Fisher information matrix, \(\varepsilon_0\) the initial filter rate with schedule \(\varepsilon_k\), and \(\odot\) elementwise multiplication. The inverse-metric update is the Sherman-Morrison form of the rank-1 filter \(B_{k+1} = (1-\varepsilon_k)B_k + \varepsilon_k\, g_k g_k^{\top}\).
Reference: David Fitzek, Robert S. Jonsson, Werner Dobrautz, Christian Schäfer, "Optimizing Variational Quantum Algorithms with qBang: Efficiently Interweaving Metric and Momentum to Navigate Flat Energy Landscapes", Quantum 8, 1313 (2024). https://arxiv.org/abs/2304.13882