Abstract
Quantum machine learning (QML) using kernel methods faces a significant scalability hurdle: the high number of quantum measurements (shots) required to estimate kernel entries accurately. This paper introduces ShofaR (Shot-frugal and Robust), an algorithm that prioritizes decision reliability over kernel precision. By reformulating classification as a chance-constrained optimization problem, ShofaR achieves reliable classification with up to 64x fewer shots than standard Support Vector Machines (SVMs). We demonstrate that the classification margin, rather than absolute kernel precision, dictates the necessary shot count, enabling significant resource savings in the NISQ era.
Introduction
In the current "Noisy Intermediate-Scale Quantum" (NISQ) era, quantum computers are limited by noise and the time required to execute circuits. Quantum kernel methods—which use quantum states to represent data in high-dimensional Hilbert spaces—are a promising path to quantum advantage. However, these kernels cannot be calculated exactly; they must be estimated by repeatedly running a circuit and measuring the output.
To obtain a kernel estimate with precision $\epsilon$, the number of shots $N$ typically scales as $N \propto \epsilon^{-2}$. For high-precision requirements, $N$ explodes, making algorithms too slow for practical use. This paper identifies a fundamental misunderstanding in the field: researchers have been striving for perfect kernel accuracy when the actual goal is ensuring the resulting classifier's labels match an "ideal" version—a property the authors define as Reliability.
The Reliability Gap
A critical insight of this work is that average accuracy is a deceptive metric for stochastic quantum classifiers. A noisy classifier might maintain a high average accuracy across many trials while having zero reliability, meaning it fails to consistently produce the same label for a given input across different runs.
As shown in Figure 1, reliability $\hat{\mathcal{R}}$ is a much stricter and more useful metric for quantum hardware. By focusing on reliability, the authors show that we don't need to know if a kernel value is 0.5001 or 0.5002; we only need to know which side of the decision boundary a data point falls on. If the classification margin is wide, the system can tolerate significant sampling noise.
Methodology: ShofaR and Margin-Based Bounds
The authors introduce several innovations to make quantum classification "shot-frugal":
- Margin-Based Bounds: They prove that the number of shots $N$ needed for a reliable label depends on the classification margin ($\gamma$) and the dataset size ($M$), scaling as $\log M / \gamma^2$. Crucially, $\gamma$ is usually much larger than the tiny precision $\epsilon$ previously targeted.
- ShofaR (Shot-frugal and Robust) Programs: The Support Vector Machine (SVM) optimization is reformulated using chance constraint programming. By using Second-Order Cone Programming (SOCP), the ShofaR algorithm builds knowledge of quantum noise directly into the training phase, finding solutions that are robust to sampling variance.
- Circuit Efficiency: The authors analyze the GATES (inversion) test and the SWAP test for measuring kernels. They demonstrate that the GATES test is mathematically superior, requiring 4x fewer shots to achieve the same variance as the SWAP test.
Key Results
The researchers evaluated ShofaR on standard benchmarks, including Circles, Moons, the Havlicek dataset, and Checkerboard patterns. Key findings include:
- Massive Shot Savings: For the "Circles" dataset, a standard SVM required roughly 8,192 shots per kernel evaluation to be reliable. The ShofaR-Est program achieved the same reliability with just 256 shots—a 32x reduction. In other scenarios, savings reached up to 64x.
- Hardware Robustness: ShofaR-Est outperformed standard SVMs even when simulated with depolarizing noise, proving more effective than standard error-mitigation techniques.
- Sparsity: By employing an L1-norm version of ShofaR, the authors reduced the number of "support vectors," further decreasing the total number of quantum circuits required during the prediction phase.
Conclusion
ShofaR provides a framework for practical QML on near-term hardware by acknowledging and optimizing for the inherent stochasticity of quantum measurements. While the optimal number of shots depends on the dataset-specific margin $\gamma$, this approach paves the way for more efficient quantum algorithms. Future work will focus on automatically identifying optimal margins and scaling these robust programs to larger NISQ hardware with more complex noise profiles.
Summary updated