[Paper Review] Operator Sampling for Shot-frugal Optimization in Variational Algorithms
This paper introduces Rosalin, a shot-frugal optimizer for variational quantum algorithms that combines weighted operator sampling with adaptive shot allocation to reduce measurement overhead. By randomly sampling Hamiltonian terms according to coefficient magnitude and dynamically adjusting shots per term, Rosalin achieves faster convergence with fewer measurements than prior methods, outperforming others in ground state energy estimation for H₂, LiH, and BeH₂ across noise models.
Quantum chemistry is a near-term application for quantum computers. This application may be facilitated by variational quantum-classical algorithms (VQCAs), although a concern for VQCAs is the large number of measurements needed for convergence, especially for chemical accuracy. Here we introduce a strategy for reducing the number of measurements (i.e., shots) by randomly sampling operators $h_i$ from the overall Hamiltonian $H = \sum_i c_i h_i$. In particular, we employ weighted sampling, which is important when the $c_i$'s are highly non-uniform, as is typical in chemistry. We integrate this strategy with an adaptive optimizer developed recently by our group to construct an improved optimizer called Rosalin (Random Operator Sampling for Adaptive Learning with Individual Number of shots). Rosalin implements stochastic gradient descent while adapting the shot noise for each partial derivative and randomly assigning the shots amongst the $h_i$ according to a weighted distribution. We implement this and other optimizers to find the ground states of molecules H$_2$, LiH, and BeH$_2$, without and with quantum hardware noise, and Rosalin outperforms other optimizers in most cases.
Motivation & Objective
- To address the high measurement cost in variational quantum algorithms (VQAs), particularly in variational quantum eigensolvers (VQE), where large numbers of shots are needed due to shot noise and non-commuting observables.
- To reduce the number of quantum circuit shots required for convergence by introducing a novel strategy of random sampling from the Hamiltonian's terms, weighted by coefficient magnitudes.
- To integrate this sampling strategy with adaptive shot allocation, improving convergence efficiency without relying on full expectation value estimation.
- To develop a new optimizer, Rosalin, that combines operator sampling with individual shot adaptation to outperform standard and existing adaptive optimizers in VQA tasks.
- To validate the method on molecular ground state energy problems (H₂, LiH, BeH₂) under both noiseless and noisy quantum hardware conditions.
Proposed method
- The method samples individual Hamiltonian terms $ h_i $ from the full Hamiltonian $ H = \sum_i c_i h_i $ with probabilities proportional to $ |c_i| $, ensuring an unbiased estimator of the energy even with a single shot.
- It employs stochastic gradient descent where each gradient component is estimated using a randomly selected subset of $ h_i $ terms, reducing variance and measurement cost.
- The optimizer dynamically allocates shots to each partial derivative based on estimated gradient variance and norm, using a running average of these quantities to guide shot allocation.
- Rosalin integrates the iCANS framework for adaptive shot allocation but enhances it by incorporating operator sampling, allowing more efficient use of limited shot budgets.
- The algorithm uses a weighted probability distribution for operator selection and applies a bias term to regularize gradient norm estimates, improving stability.
- It includes a clipping mechanism to prevent excessive shot allocation to any single gradient component, ensuring total shot count remains within bounds.
Experimental results
Research questions
- RQ1Can random sampling of Hamiltonian terms, weighted by coefficient magnitude, produce an unbiased estimator of the energy with minimal shots?
- RQ2Does combining operator sampling with adaptive shot allocation improve convergence speed and accuracy in variational quantum algorithms?
- RQ3How does Rosalin compare to standard optimizers like Adam and prior adaptive methods such as iCANS in terms of shot efficiency and convergence under noise?
- RQ4Can operator sampling help escape local minima due to inherent randomness in the sampling process?
- RQ5To what extent does the method reduce measurement overhead in VQE simulations for molecules like H₂, LiH, and BeH₂?
Key findings
- Rosalin significantly reduces the number of quantum circuit shots required for convergence in VQE simulations, outperforming both off-the-shelf optimizers and prior adaptive methods like iCANS.
- The method achieves unbiased energy estimation even with as few as one shot per gradient component due to the weighted sampling strategy, enabling unprecedented shot frugality.
- In simulations of H₂, LiH, and BeH₂, Rosalin achieved faster convergence and better energy accuracy than other optimizers, especially under noisy quantum hardware conditions.
- The integration of operator sampling with adaptive shot allocation led to improved robustness to hardware noise, as the randomness helped avoid local minima and flatten the loss landscape.
- The algorithm's performance was stable across different hyperparameters, with the bias term and running average parameters contributing to convergence stability and reduced variance.
- Empirical results show that Rosalin maintains high accuracy even when total shot count is limited, demonstrating superior shot efficiency compared to baseline methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.