Stochastic gradient descent for hybrid quantum-classical optimization
Preprint
Abstract
Within the context of hybrid quantum-classical optimization, gradient descent based optimizers typically require the evaluation of expectation values with respect to the outcome of parameterized quantum circuits. In this work, we explore the consequences of the prior observation that estimation of these quantities on quantum hardware results in a form of stochastic gradient descent optimization. We formalize this notion, which allows us to show that in many relevant cases, including VQE, QAOA and certain quantum classifiers, estimating expectation values with $k$ measurement outcomes results in optimization algorithms whose convergence properties can be rigorously well understood, for any value of $k$. In fact, even using single measurement outcomes for the estimation of expectation values is sufficient. Moreover, in many settings the required gradients can be expressed as linear combinations of expectation values -- originating, e.g., from a sum over local terms of a Hamiltonian, a parameter shift rule, or a sum over data-set instances -- and we show that in these cases $k$-shot expectation value estimation can be combined with sampling over terms of the linear combination, to obtain "doubly stochastic" gradient descent optimizers. For all algorithms we prove convergence guarantees, providing a framework for the derivation of rigorous optimization results in the context of near-term quantum devices. Additionally, we explore numerically these methods on benchmark VQE, QAOA and quantum-enhanced machine learning tasks and show that treating the stochastic settings as hyper-parameters allows for state-of-the-art results with significantly fewer circuit executions and measurements.
Keywords
All Related Versions
This publication has 33 references indexed in Scilit:
- Robust implementation of generative modeling with parametrized quantum circuitsQuantum Machine Intelligence, 2021
- Supervised learning with quantum-enhanced feature spacesNature, 2019
- Supervised Learning with Quantum Computers2018
- Probing many-body dynamics on a 51-atom quantum simulatorNature, 2017
- Observation of a many-body dynamical phase transition with a 53-qubit quantum simulatorNature, 2017
- Hardware-efficient variational quantum eigensolver for small molecules and quantum magnetsNature, 2017
- Linear Convergence of Gradient and Proximal-Gradient Methods Under the Polyak-Łojasiewicz Condition2016
- A variational eigenvalue solver on a photonic quantum processorNature Communications, 2014
- Basic Real Analysis2014
- Large-Scale Machine Learning with Stochastic Gradient Descent2010