Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

International Journal of Theoretical Physics

Quantum Algorithm for K-Nearest Neighbors Classification Based on the Categorical Tensor Network States

Yan-zhu Ma, Hong-fei Song, Jun Zhang

Published Mar 1, 2021• 10 citations
Publisher
DOI
10.1007/s10773-021-04742-y

Related papers

Image classification based on quantum K-Nearest-Neighbor algorithm

Yijie Dang, Nan Jiang, Hao Hu +2 more

Quantum Information Processing•Aug 3, 2018•152 citations

Quantum K-nearest neighbor classification algorithm based on Hamming distance

Jing Li, Song Lin, Kai Yu +1 more

arXiv:2103.04253•Quantum Information Processing•Dec 23, 2021•77 citations

Quantum Algorithm for K-Nearest Neighbors Classification Based on the Metric of Hamming Distance

Yue Ruan, Xiling Xue, Heng Liu +2 more

International Journal of Theoretical Physics•Aug 23, 2017•124 citations

Quantum K-Nearest-Neighbor Image Classification Algorithm Based on K-L Transform

Nanrun Zhou, Xiu-Xun Liu, Yuling Chen +1 more

International Journal of Theoretical Physics•Mar 1, 2021•63 citations

Quantum k -fold cross-validation for nearest neighbor classification algorithm

Jing Li, Fei Gao, Song Lin +5 more

Physica A Statistical Mechanics and its Applications•Dec 30, 2022•33 citations

QKNN: Noise‐Resilient Quantum KNN Algorithm for High‐Accuracy Classification

Asif Akhtab Ronggon, Tuhin Hossain, Tahani Jaser Alahmadi +1 more

ABSTRACT A quantum K‐nearest neighbors(QKNN) algorithm is proposed to offer superior performance compared to the classical KNN(CKNN) approach, improving classification accuracy, scalability, and robustness. Our approach optimizes Hadamard and rotation gates for quantum data encoding and efficiently embeds classical data into quantum states. Entangled gates, such as IsingXY and CNOT, enhance feature extraction and classification by enabling complex feature interactions. A new quantum distance metric based on swap test results is used to calculate similarity measures between quantum states. This algorithm offers superior accuracy and computational efficiency compared to traditional Euclidean distance metrics. We used three benchmark datasets to evaluate the suggested QKNN method. The results demonstrated that it outperformed the other two methods, classical KNN (CKNN) and quantum neural networks (QNN), as well as the more recent QKNN research. The proposed QKNN algorithm achieves prediction accuracies of 98.25%, 100%, and 99.27% for the three datasets, whereas the QNN achieves prediction accuracies of 97.17%, 83.33%, and 86.18%, respectively. Moreover, quantum noise challenges are addressed by integrating a Shor code‐based error mitigation strategy, which ensures stability of the algorithm and resilience to noisy quantum environments. The results demonstrate the scalability, efficiency, and robustness of the proposed QKNN algorithm.

Advanced Quantum Technologies•Jan 1, 2026•1 citation
ABSTRACT A quantum K‐nearest neighbors(QKNN) algorithm is proposed to offer superior performance compared to the classical KNN(CKNN) approach, improving classification accuracy, scalability, and robustness. Our approach optimizes Hadamard and rotation gates for quantum data encoding and efficiently embeds classical data into quantum states. Entangled gates, such as IsingXY and CNOT, enhance feature extraction and classification by enabling complex feature interactions. A new quantum distance metric based on swap test results is used to calculate similarity measures between quantum states. This algorithm offers superior accuracy and computational efficiency compared to traditional Euclidean distance metrics. We used three benchmark datasets to evaluate the suggested QKNN method. The results demonstrated that it outperformed the other two methods, classical KNN (CKNN) and quantum neural networks (QNN), as well as the more recent QKNN research. The proposed QKNN algorithm achieves prediction accuracies of 98.25%, 100%, and 99.27% for the three datasets, whereas the QNN achieves prediction accuracies of 97.17%, 83.33%, and 86.18%, respectively. Moreover, quantum noise challenges are addressed by integrating a Shor code‐based error mitigation strategy, which ensures stability of the algorithm and resilience to noisy quantum environments. The results demonstrate the scalability, efficiency, and robustness of the proposed QKNN algorithm.