A quantum kernel is a function that measures the similarity between two data points by encoding each into a quantum state and estimating the overlap of those states on a quantum processor. Among quantum applications in machine learning, the quantum kernel method is one of the most studied approaches because it plugs a quantum subroutine into well-understood classical algorithms such as the support vector machine.
The idea is that a quantum circuit can map data into a feature space of exponential dimension that classical computers may struggle to reproduce. Whether this yields a practical advantage on real data remains an open research question, and the method is best understood today as an experimental tool within quantum computing rather than a production technique.
How a quantum kernel is computed
Every quantum kernel starts with a quantum feature map, a parameterized circuit U(x) that loads a classical input vector x into a quantum state |φ(x)⟩. The kernel value for two inputs is usually defined as the fidelity k(x, x′) = |⟨φ(x)|φ(x′)⟩|², a number between 0 and 1 that equals 1 for identical states.
The most common estimation technique is the compute-uncompute circuit. The processor applies U(x), then the inverse U(x′)†, and measures all qubits; the probability of reading the all-zeros bit string equals the kernel value. An alternative, the swap test, compares two states prepared in separate registers but needs twice the qubits and an extra ancilla.
The quantum processor never trains a model by itself. It only fills the kernel matrix, the table of pairwise similarities for all training points. A classical solver then fits a support vector machine, kernel ridge regression or Gaussian process using that matrix, exactly as with a classical kernel.
The table below lists the stages of a typical quantum kernel workflow.
| Stage | Runs on | Output |
|---|---|---|
| Data preprocessing | Classical computer | Scaled feature vectors |
| Feature map encoding | Quantum processor | States |φ(x)⟩ for each input |
| Overlap estimation | Quantum processor | Kernel entries from measurement counts |
| Matrix correction | Classical computer | Positive semidefinite kernel matrix |
| Model training | Classical computer | Support vectors and decision function |
Types of quantum kernels
Quantum kernels differ mainly in how they compare states. The choice determines both the expressiveness of the model and how robust it is against noise and concentration effects.
| Kernel type | Similarity measure | Main strength | Main weakness |
|---|---|---|---|
| Fidelity kernel | Squared overlap of full states | Simple and expressive | Values concentrate as qubits grow |
| Projected quantum kernel | Distance between reduced density matrices | Better generalization in tests | Needs local tomography |
| Trainable kernel | Fidelity with tuned feature map | Adapts to the data set | Extra optimization cost |
| Bandwidth-scaled kernel | Fidelity with scaled inputs | Controls concentration | Scale factor needs tuning |
The projected quantum kernel measures single-qubit reduced states and feeds them into a classical Gaussian function. Research has shown that it often generalizes better than the plain fidelity kernel because it avoids comparing entire exponentially large states, which tend to look nearly orthogonal to one another.
Quantum kernels compared with related methods
A quantum kernel is closely related to a quantum neural network, since both use parameterized circuits. The difference lies in what is trained: a kernel model fixes the circuit and optimizes a convex classical problem, whereas a variational network optimizes circuit parameters directly.
| Approach | What is optimized | Training landscape | Typical risk |
|---|---|---|---|
| Quantum kernel method | Classical model weights | Convex, single global optimum | Kernel concentration |
| Quantum neural network | Circuit rotation angles | Non-convex | Barren plateaus |
| Classical RBF kernel | Classical model weights | Convex | Limited by chosen feature space |
| Quantum-inspired algorithm | Classical low-rank model | Depends on method | Requires suitable data structure |
Because training reduces to a convex problem, the quantum kernel method enjoys guaranteed optimality for a given kernel. In fact, many variational quantum classifiers can be rewritten as kernel methods, which makes kernels a useful theoretical lens for the whole field of quantum machine learning.
Evidence for quantum advantage
Theory shows that quantum kernels can outperform classical learners on carefully constructed problems. One well-known result builds a classification task from the discrete logarithm problem, for which a quantum kernel learns efficiently while no efficient classical learner exists under standard cryptographic assumptions.
On natural data sets the picture is far less clear. Benchmarks on image, chemistry and financial data usually find that well-tuned classical kernels match or beat quantum kernels. Quantum kernels can only help when the data carries structure that the feature map captures and that classical models cannot efficiently represent, and identifying such structure in real problems remains largely unsolved.
Limitations and practical pitfalls
The central obstacle is exponential concentration. As the number of qubits grows, kernel values for different inputs cluster ever more tightly around a fixed value, so the kernel matrix approaches the identity and the model memorizes rather than generalizes. Expressive feature maps, global measurements and hardware noise all strengthen this effect.
Cost is the second constraint. A training set of N points needs about N²/2 kernel entries, and each entry requires thousands of circuit repetitions because shot noise falls only with the square root of the number of shots. Data sets of a few thousand points already demand millions of circuit executions.
| Symptom | Likely cause | Remedy |
|---|---|---|
| Kernel matrix near identity | Exponential concentration | Reduce bandwidth or use projected kernels |
| Negative eigenvalues | Shot noise and hardware errors | Project onto nearest PSD matrix |
| Accuracy below classical baseline | Poorly matched feature map | Benchmark against tuned RBF kernels |
| Excessive runtime | Quadratic number of entries | Subsample data or use low-rank approximations |
A reliable study therefore always reports a classical baseline, tunes the input scaling and checks how results change with qubit count. Without those controls, an apparent quantum gain is usually an artifact of a weak comparison.
Explained without jargon
Many machine learning methods work by asking a simple question: how similar are these two examples? A quantum kernel answers that question with a quantum computer. Each example is turned into a pattern of qubits, and the machine checks how much the two patterns overlap.
The hope is that a quantum computer can notice kinds of similarity that ordinary computers miss, the way a trained ear hears harmonies that others do not. So far, that hope has been confirmed only for specially designed puzzles, and for everyday data classical methods remain just as good.
A typical use case
A research team at a materials laboratory wants to classify candidate molecules as active or inactive for a catalytic reaction. They have 400 labeled molecules, each described by 8 numeric descriptors, and access to a cloud quantum processor with superconducting qubits.
The team encodes each molecule with an 8-qubit feature map and estimates about 80,000 kernel entries using 2,000 shots each, then trains a support vector machine on a laptop. After tuning the input bandwidth, the quantum kernel reaches accuracy comparable to a classical RBF kernel but not better. The project still pays off: the team gains a reproducible benchmarking pipeline ready for larger, error-corrected hardware, and an honest record that, at this scale, no quantum advantage appeared.