Journal of Applied Informatics and Computing
Implementation of Quantum Kernel Estimation for Supervised Classification on a Two-Qubit Quantum Simulator
Rizqi Aditya, Erwin Yudi Hidayat
Abstract
Quantum kernel estimation (QKE) lets a quantum computer supply the similarity values a classical support vector machine needs, but the original hardware demonstration is hard to reproduce and gives little guidance on the number of shots a usable kernel requires. This study implements QKE on a two-qubit simulator and quantifies its shot and noise requirements. A second-order ZZ feature map encodes each data point, kernel entries are measured from an overlap circuit, and a classical support vector machine is trained on the resulting matrix. An artificial dataset of 40 training and 40 test points was generated with a separation gap of 0.3, the shot count was varied from 128 to 50,000, and a depolarising and readout noise model was applied; classical kernels and a variational classifier served as baselines. With an exactly computed kernel the classifier labels every training and test point correctly using 12 support vectors. Perfect test accuracy is reached at 1,024 shots per pair, far below the 50,000 used on hardware, and the deviation from the exact kernel decays with a fitted exponent of -0.52. The weight of negative eigenvalues falls from 2.019 to 0.096 as shots increase, making it a practical warning sign of too few shots. Under noise the kernel values drop by 0.014 on average, yet accuracy stays at 100% because the drop is nearly uniform. Classical kernels reach at most 70% test accuracy and the variational classifier 98.3%. The work contributes a reproducible open-source procedure and shot-budget guidance for quantum kernel experiments.