Work

The role of encodings and distance metrics for the quantum nearest neighbor

Year: 2024
Type: article
Abstract: Over the past few years, we observed a rethinking of classical artificial intelligence algorithms from a quantum computing perspective. This trend is driven by the peculiar properties of quantum mechanics, which offer the potential to enhance artificial intelligence capabilities, enabling it to surpass the constraints of classical computing. However, redesigning classical algorithms into their quantum equivalents is not straightforward and poses numerous challenges. In this study, we analyze in-depth two orthogonal designs of the Quantum K-Nearest Neighbor classifier. In particular, we show two solutions based on amplitude encoding and basis encoding of data, respectively. These two types of encoding impact the overall structure of the respective algorithms, which employ different distance metrics and show different performances. By breaking down each quantum algorithm, we clarify implementation aspects ranging from data preparation to classification. Eventually, we discuss the difficulties associated with data preparation, the theoretical advantage of quantum algorithms, and their impact on performance with respect to the classical counterpart.
Institution: University of Pisa
Language: English
Open Access status: hybrid
Estimated APC paid: $3,190
OpenAlex ID: W4402602285
FWCI: 1.331
Cites: 29
Cited by: 9
Related to: 10