Quantum K-nearest neighbor classification algorithm based on Hamming distance

K-nearest neighbor classification algorithm is one of the most basic algorithms in machine learning, which determines the sample’s category by the similarity between samples. In this paper, we propose a quantum K-nearest neighbor classification algorithm with Hamming distance. In this algorithm, quantum computation is firstly utilized to obtain Hamming distance in parallel. Then, a core sub-algorithm for searching the minimum of unordered integer sequence is presented to find out the minimum distance. Based on these two sub-algorithms, the whole quantum frame of K-nearest neighbor classification algorithm is presented. At last, it is shown that the proposed algorithm can achieve a quadratical speedup by analyzing its time complexity briefly.

[1]  Yue Ruan,et al.  Quantum Algorithm for K-Nearest Neighbors Classification Based on the Metric of Hamming Distance , 2017, International Journal of Theoretical Physics.

[2]  N. Dewar Quantum Foundations , 2019 .

[3]  S. Lloyd,et al.  Quantum principal component analysis , 2013, Nature Physics.

[4]  G. Brassard,et al.  Quantum Amplitude Amplification and Estimation , 2000, quant-ph/0005055.

[5]  Ahmad B. A. Hassanat,et al.  Effects of Distance Measure Choice on K-Nearest Neighbor Classifier Performance: A Review , 2019, Big Data.

[6]  G. Sergioli,et al.  Classification Problem in a Quantum Framework , 2017, 1704.06475.

[7]  Yaxin Bi,et al.  Using kNN model for automatic text categorization , 2006, Soft Comput..

[8]  Songfeng Lu,et al.  Quantum decision tree classifier , 2014, Quantum Inf. Process..

[9]  Chao-Hua Yu,et al.  Quantum data compression by principal component analysis , 2018, Quantum Information Processing.

[10]  Antonio-José Almeida,et al.  NAT , 2019, Springer Reference Medizin.

[11]  Jacob biamonte,et al.  Quantum machine learning , 2016, Nature.

[12]  Hao Hu,et al.  Image classification based on quantum K-Nearest-Neighbor algorithm , 2018, Quantum Information Processing.

[13]  Neil Genzlinger A. and Q , 2006 .