pith. sign in

arxiv: 2003.09187 · v3 · pith:A2YCW56Unew · submitted 2020-03-20 · 🪐 quant-ph

Quantum k-nearest neighbors algorithm

classification 🪐 quant-ph
keywords quantumalgorithmstateclassicalnearestneighborsalgorithmsfidelity
0
0 comments X
read the original abstract

One of the simplest and most effective classical machine learning algorithms is the $k$-nearest neighbors algorithm ($k$NN) which classifies an unknown test state by finding the $k$ nearest neighbors from a set of $M$ train states. Here we present a quantum analog of classical $k$NN $-$ quantum $k$NN (Q$k$NN) $-$ based on fidelity as the similarity measure. We show that Q$k$NN algorithm can be reduced to an instance of the quantum $k$-maxima algorithm, hence the query complexity of Q$k$NN is $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 $k$NN and existing quantum $k$NN 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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Quantum-Enhanced Similarity Measures for Polarimetric Materials Classification

    cs.CV 2026-06 unverdicted novelty 4.0

    A quantum-classical hybrid uses SWAP-test fidelity on 32D embeddings from polarimetric data to classify 23 materials with competitive accuracy versus classical optimal transport, suggesting viability for NISQ devices.