A quantum k-nearest neighbors implementation using magnitude-aware comparisons
Christopher Rector, Jiangwen Sun
Key points
From the paper's conclusion- Much attention has recently been devoted to the k-nearest neighbors (KNN) algorithm as a case study for quantum computing algorithms.
Abstract
Much attention has recently been devoted to the k-nearest neighbors (KNN) algorithm as a case study for quantum computing algorithms. Several algorithms have devised methods to compute a similarity metric to solve Quantum KNN (QKNN). This paper presents a practical quantum encoding technique that enables Euclidean distance calculation between vectors with different L2 norms by appending a single component to each vector, then uses it in the QKNN problem. It is arguably simpler to understand and implement than comparable methods and uses fewer qubits. Further, an implementation of this algorithm is provided and is used to benchmark it against a recent Euclidean-distance QKNN method on standard labeled datasets. In addition to demonstrating proper formulation, the results show marked improvement over similar implementations during simulation with realistic noise due to the use of fewer qubits and thus more coherent circuits.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Fidelity-Derived Quantum Dissimilarity-Enhanced k-Nearest Neighbor Algorithm for Arterial Hypertension DetectionAI in Medicine · 2026
- Overcoming the Representational Limitations of Amplitude Encoding for Quantum Neural NetworksarXiv · 2026
- Efficient quantum convolutional neural networks for image classification: overcoming hardware constraintsQuantum Machine Intelligence · 2026
- Experimental evidence of generalization in quantum machine learning in small-data regimearXiv · 2026
- Implementation of Quantum Fourier Transform and Quantum Hashing for Quantum Devices with Arbitrary Qubit Connectivity GraphsQuantum Information and Computation · 2025
- Restoring quantum neural network trainability through reusable calibrationarXiv · 2026