English

Quantum $k$-nearest neighbors algorithm

Quantum Physics 2021-06-18 v3

Abstract

One of the simplest and most effective classical machine learning algorithms is the kk-nearest neighbors algorithm (kkNN) which classifies an unknown test state by finding the kk nearest neighbors from a set of MM train states. Here we present a quantum analog of classical kkNN - quantum kkNN (QkkNN) - based on fidelity as the similarity measure. We show that QkkNN algorithm can be reduced to an instance of the quantum kk-maxima algorithm, hence the query complexity of QkkNN is O(kM)O(\sqrt{kM}). The non-trivial task in this reduction is to encode the fidelity information between the test state and all the train states as amplitudes of a quantum state. Converting this amplitude encoded information to a digital format enables us to compare them efficiently, thus completing the reduction. Unlike classical kkNN and existing quantum kkNN algorithms, the proposed algorithm can be directly used on quantum data thereby bypassing expensive processes such as quantum state tomography. As an example, we show the applicability of this algorithm in entanglement classification and quantum state discrimination.

Keywords

Cite

@article{arxiv.2003.09187,
  title  = {Quantum $k$-nearest neighbors algorithm},
  author = {Afrad Basheer and A. Afham and Sandeep K. Goyal},
  journal= {arXiv preprint arXiv:2003.09187},
  year   = {2021}
}

Comments

21 pages, 11 figures. Final preprint version