Berlin Researchers Crack the Query Cost of Quantum Kernel Inference
A NeurIPS 2026 paper maps the full landscape of how to evaluate a trained quantum kernel model and pins down the query-optimal recipe.
Takeaways
- NeurIPS 2026 paper nails down the optimal query complexity of inference in quantum kernel methods.
- Standard sampling approach scales as O(N ||alpha||_2^2 / epsilon^2) for N training points and precision epsilon.
- Encoding the full prediction sum as one observable with amplitude estimation gives O(||alpha||_1 / epsilon).
- A matching Omega(||alpha||_1 / epsilon) lower bound proves the method is query-optimal up to log factors.
- Gate-cost analysis shows the query-optimal choice is not always best on depth-limited hardware.
- All four strategies rely only on amplitude estimation, suiting early-fault-tolerant quantum devices.
Quantum kernel methods are often studied as candidates for quantum advantage in supervised learning, but most complexity analyses center on training. A Berlin-based research group has examined inference, where a trained model scores new inputs, and derived tight bounds for the quantum resources that prediction requires.
The paper, listed as a conference paper at NeurIPS 2026, analyzes four algorithms formed from two independent design choices. Its best method reaches the optimal query complexity at leading polynomial order, with the stated logarithmic overheads.
Prediction cost repeats
An embedding quantum kernel begins with an n-qubit feature map that prepares a state rho(x) for input x. The kernel measures the overlap between two encoded inputs:
k(x, x') = Tr[rho(x) rho(x')]
Training on N examples produces coefficients alpha_i. Ignoring a separately added bias, inference evaluates the score
f(x) = sum_i alpha_i k(x, x_i)
Each kernel value comes from a quantum circuit instead of a closed-form calculation. Estimating the score to additive error epsilon therefore requires repeated access to the feature-map or kernel primitive. A query denotes one such access; it does not represent the full gate cost of implementing that access.
The standard method estimates all N kernel values separately and then adds the weighted results. Its query complexity is
O(N ||alpha||_2^2 / epsilon^2)
Here, ||alpha||_2 is the Euclidean norm of the trained coefficient vector. The factor 1 / epsilon^2 comes from ordinary sampling noise. Because training can be amortized across many predictions while inference runs for every request, this cost can dominate a deployed model even when training remains more expensive as a one-time operation.
Four routes through the same sum
The analysis combines two extraction methods with two aggregation methods. Ordinary sampling estimates an expectation value from independent circuit measurements. Quantum amplitude estimation uses coherent circuit access to improve the precision dependence from quadratic to linear. The aggregation step either processes each kernel term separately or encodes the full weighted sum into one observable.
| Kernel extraction | Aggregation | Query behavior | Implementation consequence |
|---|---|---|---|
| Sampling | Term by term | O(N ||alpha||_2^2 / epsilon^2) |
Shallow individual estimates, with separate work for every training point |
| Amplitude estimation | Term by term | Linear precision dependence, with every term still estimated separately | More coherent depth per estimate |
| Sampling | Single observable | O(||alpha||_1^2 / epsilon^2) |
One aggregate estimator, with ordinary sampling noise |
| Amplitude estimation | Single observable | O(||alpha||_1 / epsilon) |
Optimal query scaling, with the deepest coherent circuit |
The two middle strategies isolate the source of each improvement. Amplitude estimation reduces the precision cost, while aggregate encoding removes the explicit loop over the training set from the query count.
One observable removes the explicit N
The aggregate construction prepares an index register whose weights depend on |alpha_i|, uses controlled feature maps to select the corresponding training example, and records coefficient signs in the measured observable. Multiplying the resulting expectation value by ||alpha||_1, where ||alpha||_1 = sum_i |alpha_i|, recovers the inference score.
Combining that construction with amplitude estimation yields O(||alpha||_1 / epsilon) queries. The comparable sampling strategy costs O(||alpha||_1^2 / epsilon^2), so amplitude estimation provides a quadratic reduction in the combined normalization and precision factor.
The paper also proves a lower bound of Omega(||alpha||_1 / epsilon) under the same oracle-access model. The upper and lower bounds therefore match at leading polynomial order, ruling out a further polynomial query improvement within that model.
The absence of an explicit N factor requires careful interpretation. Training-set size can still affect ||alpha||_1, and coherent preparation of the weighted index state may require gates that scale with N. The query result isolates calls to the kernel primitive; it does not make data access or state preparation free.
The gate bill changes the ranking
Gate complexity can favor a different strategy because one query may contain state preparation, controlled feature maps, inverse operations, reflections, and arithmetic. The single-observable circuit also needs coherent access to the training examples and their coefficients. Those operations contribute gates and depth even when the query formula contains no explicit dependence on N.
Amplitude estimation adds another hardware requirement: many coherent applications of a circuit and its inverse before measurement. Early fault-tolerant machines may have enough logical qubits to run the construction while still facing restrictive depth budgets and costly error correction.
| Binding constraint | Likely strategy | Reason |
|---|---|---|
| Kernel-oracle calls | Single observable with amplitude estimation | Achieves the optimal query bound |
| Coherent depth | Sampling-based method | Avoids the long coherent sequence required by amplitude estimation |
| Controlled data access | Term-by-term method | Uses smaller circuits and simpler state preparation |
An implementation-specific crossover depends on the feature-map circuit, logical gate costs, state-preparation method, error-correction overhead, coefficient distribution, and number of predictions. The paper’s gate analysis turns the four algorithms into hardware-dependent options instead of treating query complexity as a complete runtime measure.
The speedup has conditions
The work provides a theoretical complexity analysis without dataset benchmarks or an accompanying code release. Its strongest method assumes coherent access suitable for amplitude estimation, making it primarily relevant to fault-tolerant or early fault-tolerant hardware.
- Coefficient growth: A large
||alpha||_1can absorb the apparent gain from removing explicitNdependence. Regularization and sparsity directly affect inference cost. - Data access: Preparing a superposition over training examples and coefficients may carry substantial gate and memory overhead.
- Decision margin: The bound controls additive error in the score. Inputs within
epsilonof a classification boundary may require higher precision. - End-to-end advantage: A full speedup also depends on efficient feature encoding, useful statistical performance, and resistance to competitive classical kernel approximations.
For system design, the result separates three costs that are often conflated: kernel queries, coherent circuit depth, and coefficient-dependent normalization. Developers with ample depth and expensive oracle calls can use the aggregate amplitude-estimation method; systems constrained by gates or coherence can select one of the lighter variants with a quantified query trade-off.