English

Optimal algorithmic complexity of inference in quantum kernel methods

Quantum Physics 2026-04-20 v2 Machine Learning

Abstract

Quantum kernel methods are among the leading candidates for achieving quantum advantage in supervised learning. A key bottleneck is the cost of inference: evaluating a trained model on new data requires estimating a weighted sum i=1Nαik(x,xi)\sum_{i=1}^N \alpha_i k(x,x_i) of NN kernel values to additive precision ε\varepsilon, where α\alpha is the vector of trained coefficients. The standard approach estimates each term independently via sampling, yielding a query complexity of O(Nα22/ε2)O(N\lVert\alpha\rVert_2^2/\varepsilon^2). In this work, we identify two independent axes for improvement: (1) How individual kernel values are estimated (sampling versus quantum amplitude estimation), and (2) how the sum is approximated (term-by-term versus via a single observable), and systematically analyze all combinations thereof. The query-optimal combination, encoding the full inference sum as the expectation value of a single observable and applying quantum amplitude estimation, achieves a query complexity of O(α1/ε)O(\lVert\alpha\rVert_1/\varepsilon), removing the dependence on NN from the query count and yielding a quadratic improvement in both α1\lVert\alpha\rVert_1 and ε\varepsilon. We prove a matching lower bound of Ω(α1/ε)\Omega(\lVert\alpha\rVert_1/\varepsilon), establishing query-optimality of our approach up to logarithmic factors. Beyond query complexity, we also analyze how these improvements translate into gate costs and show that the query-optimal strategy is not always optimal in practice from the perspective of gate complexity. Our results provide both a query-optimal algorithm and a practically optimal choice of strategy depending on hardware capabilities, along with a complete landscape of intermediate methods to guide practitioners. All algorithms require only amplitude estimation as a subroutine and are thus natural candidates for early-fault-tolerant implementations.

Keywords

Cite

@article{arxiv.2604.15214,
  title  = {Optimal algorithmic complexity of inference in quantum kernel methods},
  author = {Elies Gil-Fuster and Seongwook Shin and Sofiene Jerbi and Jens Eisert and Maximilian J. Kramer},
  journal= {arXiv preprint arXiv:2604.15214},
  year   = {2026}
}

Comments

26 pages (13+13), 4 figures, comments welcome

R2 v1 2026-07-01T12:13:01.251Z