Sign in
← Atlas
Strong empiricalAlgorithmsQuantum machine learning

Quantum kernel support-vector classifier

A quantum feature-map record paired with a classical SVM so model quality and data costs stay visible.

machine learningkernelclassificationfeature map

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.

Quantum kernels use a circuit to map inputs into a feature space and estimate similarities, then hand the kernel matrix to a classical learner. The meaningful benchmark is end-to-end predictive performance and cost.

Circuit & simulation
K(x,y)63%
What this takes and returns
TakesNothingWhat joins here

No input port at this edge: the record publishes no gate sequence and no register, so there is nothing here to read one off — and unlike a declared hole, nothing has been recorded about what belongs here.

Nothing in the Atlas meets this end.

ReturnsNothingWhat joins here

No output port at this edge: the record publishes no gate sequence and no register, so there is nothing here to read one off — and unlike a declared hole, nothing has been recorded about what belongs here.

Nothing in the Atlas meets this end.

This record publishes no gate sequence and no register, so there is nothing here to read an interface off. Absent rather than empty. See all 152 →

How it works

A quantum kernel maps a classical input xx to a quantum state ϕ(x)=U(x)0|\phi(x)\rangle=U(x)|0\rangle via a feature-map circuit U(x)U(x), and defines a kernel via the state overlap K(x,y)=ϕ(x)ϕ(y)2K(x,y)=|\langle\phi(x)|\phi(y)\rangle|^2. The circuit estimates K(x,y)K(x,y) by applying U(x)U(x) then U(y)U(y)^\dagger and measuring the probability of returning to 0n|0\rangle^{\otimes n}: Pr[0n]=0U(y)U(x)02=K(x,y)\Pr[0^n] = |\langle 0|U(y)^\dagger U(x)|0\rangle|^2 = K(x,y), so each entry of the kernel matrix costs repeated circuit shots rather than a closed-form evaluation. The resulting Gram matrix KK is handed to a standard classical SVM, which still performs the convex optimization over Lagrange multipliers — the quantum circuit only changes the feature map, not the learning algorithm. This record checks that KK is symmetric and numerically positive-semidefinite (within tolerance) on a small dataset; as its own caveat states, whether a given feature map's kernel actually separates a dataset better than a tuned classical kernel is a separate, data-dependent question this toy check does not answer.

Implementation
Native
quantum_kernel.py
import pennylane as qml
from pennylane import numpy as np

dev = qml.device("default.qubit", wires=2)

def feature_map(x):
    qml.AngleEmbedding(x, wires=[0, 1])

@qml.qnode(dev)
def kernel(x, y):
    feature_map(x)
    qml.adjoint(feature_map)(y)
    return qml.probs(wires=[0, 1])[0]

FINAL_CIRCUIT = kernel

This returns a toy overlap estimate; training and held-out evaluation are intentionally separate from the circuit record.

Quantum vs classical

Classical baseline

Tuned RBF, polynomial, linear, random-feature, or deep-kernel SVMs with the same train/test split.

Quantum claim

A quantum feature map may define a useful kernel for a dataset; it does not imply universal classification advantage.

How to compare

Report data encoding, kernel-estimation shots, matrix conditioning, training time, test metrics, and classical hyperparameter budget.

Declared gaps

Nobody has reviewed this record for gaps yet.

Literature & references
Quantum classifier with tailored quantum kernel2019 · Carsten Blank, Daniel K. Park, June-Koo Kevin Rhee, Francesco Petruccione

Connects quantum-state fidelity kernels to a classifier and discusses a hardware demonstration.

arxiv.org/abs/1909.02611
Application of Quantum Machine Learning using the Quantum Kernel Algorithm on High Energy Physics Analysis at the LHC2021 · Sau Lan Wu, Shaojun Sun, Wen Guan, Chen Zhou, Jay Chan, Chi Lung Cheng, Tuan Pham, Yan Qian, Alex Zeng Wang, Rui Zhang, Miron Livny, Jennifer Glick, Panagiotis Kl. Barkoutsos, Stefan Woerner, Ivano Tavernelli, Federico Carminati, Alberto Di Meglio, Andy C. Y. Li, Joseph Lykken, Panagiotis Spentzouris, Samuel Yen-Chi Chen, Shinjae Yoo, Tzu-Chieh Wei

A domain application that reports quantum-kernel performance alongside classical counterparts.

arxiv.org/abs/2104.05059