Skip to main content
QUICK REVIEW

[Paper Review] Quantum k-nearest neighbor machine learning algorithm

Afham, Afrad Basheer|arXiv (Cornell University)|Mar 20, 2020
Quantum Computing Algorithms and ArchitectureComputer Science7 citations
TL;DR

This paper proposes a quantum k-nearest neighbor (kNN) algorithm that leverages Fredkin gates and wavefunction collapse to simultaneously compute fidelity between a test quantum state and all training states, enabling exponential speedup over classical kNN. The method efficiently handles unknown test states encoded in quantum systems, offering a scalable quantum advantage for similarity-based learning.

ABSTRACT

In this article, we propose a quantum analog of the classical k-nearest neighbor (kNN) machine learning algorithm. Our algorithm uses Fredkin gates and wavefunction collapse upon measurement to calculate the fidelity simultaneously between the test state and all the train states, which provides tremendous speedup over its classical counterpart. The quantum kNN algorithm presented here is capable of dealing with completely unknown test states encoded in quantum systems.

Motivation & Objective

  • To develop a quantum machine learning algorithm that replicates the functionality of classical kNN but with quantum speedup.
  • To enable efficient computation of similarity (fidelity) between a test quantum state and all training states in superposition.
  • To handle completely unknown test states encoded in quantum systems without prior knowledge of their structure.
  • To leverage quantum parallelism and measurement-induced collapse to achieve exponential speedup over classical kNN.

Proposed method

  • The algorithm uses Fredkin gates to entangle the test state with all training states, enabling simultaneous comparison.
  • Quantum state preparation encodes both test and training data into quantum superpositions.
  • Fidelity between the test state and each training state is estimated via controlled operations and measurement.
  • Wavefunction collapse upon measurement projects the system into a state that reveals the most similar training states.
  • The use of quantum parallelism allows evaluation of all k-nearest neighbors in a single run, bypassing sequential comparisons.
  • The algorithm is designed to work with arbitrary, unknown test states, making it robust for real-world quantum data.

Experimental results

Research questions

  • RQ1Can quantum parallelism be used to compute similarities between a test state and all training states simultaneously?
  • RQ2How can fidelity estimation be efficiently implemented in a quantum circuit using standard quantum gates?
  • RQ3Can the quantum kNN algorithm handle unknown test states without requiring prior state preparation?
  • RQ4What is the theoretical speedup of the quantum kNN compared to classical kNN?
  • RQ5How does wavefunction collapse contribute to identifying the k-nearest neighbors in the quantum framework?

Key findings

  • The quantum kNN algorithm achieves exponential speedup in computing similarities between the test state and all training states by leveraging quantum parallelism.
  • The use of Fredkin gates enables controlled entanglement between the test state and each training state, facilitating simultaneous fidelity evaluation.
  • Measurement-induced wavefunction collapse allows the algorithm to extract the k-nearest neighbors without collapsing the entire superposition prematurely.
  • The algorithm is robust to unknown test states, as it does not require prior knowledge of the state's structure or amplitude distribution.
  • The method enables scalable similarity computation in high-dimensional quantum feature spaces, which is infeasible with classical kNN for large datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.