# Quantum version of the k-NN classifier based on a quantum sorting algorithm

arXiv: https://arxiv.org/abs/2204.03761 · HTML: https://mlsanity.com/paper/2204.03761/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- Builds on 7 of its 54 references that are in the map.
- First posted on arXiv 7 Apr 2022.

## Builds on (most cited first, 7 of 7)

- [Variational Quantum Algorithms](https://mlsanity.com/paper/2012.09265/) (2020)
- [Quantum Machine Learning](https://mlsanity.com/paper/1611.09347/) (2016)
- [Federated Quantum Machine Learning](https://mlsanity.com/paper/2103.12010/) (2021)
- [Noisy intermediate-scale quantum (NISQ) algorithms](https://mlsanity.com/paper/2101.08448/) (2021)
- [Simulating a perceptron on a quantum computer](https://mlsanity.com/paper/1412.3635/) (2014)
- [Quantum Machine Learning for Finance](https://mlsanity.com/paper/2109.04298/) (2021)
- [Quantum Machine Learning Algorithm for Knowledge Graphs](https://mlsanity.com/paper/2001.01077/) (2020)

## Built on by (most cited first, 1 of 1)

- [Efficient Quantum Approximate kNN Algorithm via Granular-Ball Computing](https://mlsanity.com/paper/2505.23066/) (2025)

## Abstract (arXiv)

In this work we introduce a quantum sorting algorithm with adaptable requirements of memory and circuit depth, and then use it to develop a new quantum version of the classical machine learning algorithm known as k-nearest neighbors (k-NN). Both the efficiency and performance of this new quantum version of the k-NN algorithm are compared to those of the classical k-NN and another quantum version proposed by Schuld et al. citeInt13. Results show that the efficiency of both quantum algorithms is similar to each other and superior to that of the classical algorithm. On the other hand, the performance of our proposed quantum k-NN algorithm is superior to the one proposed by Schuld et al. and similar to that of the classical k-NN.
