Quantum Algorithms Database
Quantum Kernel Estimation
Uses quantum circuits to compute inner products between quantum feature maps, potentially enabling support vector machines to classify data that is hard to separate classically.
Last reviewed September 30, 2026. Check the linked sources for anything that may have changed since.
Year
2018 (Schuld and Killoran; Havlíček and coauthors, arXiv); 2019 (published)
Inventor(s)
Vojtěch Havlíček, Antonio Córcoles, Kristan Temme, Aram Harrow, Abhinav Kandala, Jerry Chow, and Jay Gambetta; Maria Schuld and Nathan Killoran
Speedup Type
No Speedup Claimed
Difficulty
★★★★☆
Overview
A kernel is a function that measures how similar two data points are, and many machine learning methods, including support vector machines, use kernels to separate data that is not linearly separable in its original form. Quantum kernel estimation uses a quantum computer to compute a kernel by mapping each data point into a quantum state and measuring the overlap between the states for two points.
The hope is that quantum states live in a space so large and so structured that kernels built from them capture patterns classical kernels cannot. The challenge, as the field has found, is that this larger space is also harder to use, and no quantum kernel has yet outperformed good classical methods on real data.
The problem
Classical kernel methods struggle with high-dimensional feature spaces. Quantum feature maps can create exponentially large feature spaces that may be classically hard to compute.
History
Havlíček and colleagues at IBM and Schuld and Killoran at Xanadu proposed the idea in 2018, and both papers appeared in 2019, the first in Nature under the title Supervised Learning with Quantum-Enhanced Feature Spaces and the second in Physical Review Letters. Havlíček's team implemented the method on a two-qubit superconducting processor and classified small artificial datasets.
Theory developed quickly. Schuld showed in 2021 that many quantum machine learning models can be understood as kernel methods. Liu, Arunachalam, and Temme proved a rigorous quantum advantage for a classification task based on the discrete logarithm problem in 2021. Huang and coauthors showed in the same year that classical models given training data can compete with quantum ones on many tasks. Thanasilp, Wang, Cerezo, and Holmes described exponential concentration of quantum kernels in 2022, which explains why many natural quantum kernels fail to be useful as the number of qubits grows.
Intuition
A kernel method never works with the data in its raw form. It works with the matrix of pairwise similarities between all training points. If the similarity function corresponds to an inner product in some feature space, then the learning algorithm effectively operates in that space, without ever writing down the features.
A quantum feature map is a circuit U of x that prepares a quantum state from a data point x. The kernel between two points is the squared overlap between their states. To estimate it, you run the circuit for x, then the inverse of the circuit for z, and measure the probability of returning to the all-zeros state. That probability equals the squared overlap.
The Havlíček feature map applies Hadamard gates, then phase rotations that depend on the data, then Hadamard gates and a second round of data-dependent phases. Circuits of this kind are related to IQP circuits, which are believed hard to simulate classically. If the useful structure in the data lines up with what such a feature map highlights, the quantum kernel could in principle be useful.
How it works
Encodes classical data into quantum states using a parameterized circuit (feature map). Computes the kernel (inner product) between data points by running the circuits on a quantum processor and measuring overlap.
- Choose a feature map circuit U of x that encodes a classical data point x into an n-qubit state.
- For each pair of training points x and z, run the circuit U of x followed by the inverse of U of z on the zero state, and measure all qubits in the computational basis.
- Estimate the kernel entry as the fraction of measurements that give the all-zeros string, using many shots per pair.
- Assemble the estimates into a kernel matrix for all pairs of training points, with the number of pairs growing as the square of the data set size.
- Train a classical kernel machine, such as an SVM, on this kernel matrix to find the decision boundary.
- To classify a new point, compute its kernel values against the support vectors with the same circuits and apply the trained classifier.
Worked example
For a data set of 100 training points, the kernel matrix has 100 times 99 over 2, about 4,950 independent entries. If each entry needs 1,000 shots to reach a standard error of about 1.5 percent, the total is about five million circuit executions. That is feasible on a cloud device, but it grows quadratically with the training set size.
In the original IBM demonstration, two-dimensional data points were encoded on two qubits, and the classifier achieved high accuracy on a synthetic data set designed to match the feature map. The result showed that the pipeline works, but a classical kernel could also separate that data easily.
Complexity and resources
| Circuit evaluations for training | O(N squared) kernel entries for N training points, each with 1 over epsilon squared shots |
|---|---|
| Classical processing | Training an SVM on an N by N kernel matrix costs about N squared to N cubed |
| Prediction | One circuit evaluation per support vector for each new point |
| Concentration | Kernel values can concentrate exponentially around a constant as qubits increase, requiring exponentially many shots |
| Proven advantage | Exists for specially constructed tasks, such as those based on the discrete logarithm |
Hardware needs
A quantum processor with enough qubits and fidelity to run the feature-map circuits and their inverses.
Large numbers of shots, with fast execution, since the number of kernel entries grows quadratically.
A classical computer to train the kernel machine.
Real-world impact
Active research area for quantum ML advantage — some datasets with quantum structure show separation from classical kernels, though finding practical datasets remains an open problem.
Applications
Classification and regression with kernel methods, in research studies on synthetic and small real data sets.
Particle physics event classification and materials property prediction in exploratory projects.
Studying quantum advantage in learning with specially structured data.
Quantum data classification, where the inputs are already quantum states.
Limitations
- No quantum kernel has beaten strong classical methods on practical data.
- Exponential concentration makes many natural feature maps untrainable at scale.
- The quadratic number of circuit evaluations is costly.
- Noise reduces the contrast of the kernel and degrades performance.
Common misconceptions
- Using a quantum computer to compute a kernel does not guarantee a better classifier.
- A larger feature space is not automatically more useful. It must match the structure of the data.
- The quantum part only computes the kernel. Training and prediction are classical.
How it compares
The quantum support vector machine of Rebentrost and coauthors uses quantum linear algebra to train the SVM, rather than quantum circuits to compute the kernel.
Classical kernels such as the radial basis function are cheap and effective.
Variational quantum classifiers train a circuit directly instead of using a fixed feature map.
Why it matters
Quantum kernels gave quantum machine learning a clear and rigorous framework. They pose the central question of the field: is there data for which quantum feature spaces help? The provable separations and the concentration results are the main guides to answering it.
They also show how a model can be tested without waiting for large hardware, because the kernel matrix is a well-defined object that can be compared with classical alternatives.
The idea behind quantum kernels
Kernel methods such as support vector machines classify data by measuring similarity between points in a high-dimensional feature space. They become costly when the feature space is large and the kernel function is expensive to estimate. Havlicek, Corcoles, Temme, Harrow, Kandala, Chow and Gambetta (arXiv 1804.11326) propose encoding the classification problem's feature space into a quantum state, using the large state space of a quantum system to build richer representations.
They propose two techniques: a quantum variational classifier, which uses a parameterised circuit to classify the training data much like a conventional SVM, and a quantum kernel estimator, which estimates the kernel on quantum hardware and then optimises the classifier directly. Both were run on a superconducting processor. The abstract does not state the qubit count, and does not claim a demonstrated speedup or advantage over classical methods.
How the estimate is obtained
For two data points, the circuit prepares the feature state for the first, applies the inverse of the feature-state circuit for the second, and measures the probability of returning to the starting state. That probability is the kernel value. Repeating over all pairs builds the kernel matrix, which a classical SVM then uses. The quantum computer therefore only supplies the similarity numbers.
- Quantum part: estimate each kernel entry by repeated measurement.
- Classical part: train the SVM using the kernel matrix.
- Cost: the number of kernel entries grows with the square of the training set, and each needs many shots.
What is and is not established
The paper shows the method works on hardware at small scale. It does not show that quantum kernels beat strong classical models on real datasets. Later research discusses when quantum kernels could be useful and when they would be hard to train or no better than classical ones, but this page did not open those papers, so it makes no claim beyond the original abstract.
Frequently asked questions
What is a quantum kernel?
A similarity function between data points computed from the overlap of quantum states that encode them using a circuit called a feature map.
How is it estimated?
By running the feature map for one point and the inverse of the feature map for another, and measuring the probability of the all-zeros outcome.
Do quantum kernels beat classical ones?
Not on practical data so far. There are proofs of advantage only for contrived tasks.
What is exponential concentration?
A phenomenon in which kernel values for different data points become nearly identical as the number of qubits grows, making them hard to distinguish.
Can I try it?
Yes. Libraries such as Qiskit Machine Learning and PennyLane include quantum kernels that run on simulators and cloud hardware.
Related algorithms
References and further reading
Sources opened and checked on December 1, 2026. Resource estimates and claims change, so check the originals.
- Supervised learning with quantum enhanced feature spaces (arXiv (Havlicek et al.)) Opened. Source for the two methods and the no-advantage-claimed statement.
- Quantum support vector machine for big data classification (arXiv (Rebentrost, Mohseni, Lloyd)) Opened. The earlier, matrix-inversion approach.