Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

Natural Science

Comparison of Two Quantum Nearest Neighbor Classifiers on IBM’s Quantum Simulator

Wei Hu

Published Jan 1, 2018• 10 citations
Publisher

Abstract

Today computers are used to store data in memory and then process them. In our big data era, we are facing the challenge of storing and processing the data simply due to their fast ever growing size. Quantum computation offers solutions to these two prominent issues quantum mechanically and beautifully. Through careful design to employ superposition, entanglement, and interference of quantum states, a quantum algorithm can allow a quantum computer to store datasets of exponentially large size as linear size and then process them in parallel. Quantum computing has found its way in the world of machine learning where new ideas and approaches are in great need as the classical computers have reached their capacity and the demand for processing big data grows much faster than the computing power the classical computers can provide today. Nearest neighbor algorithms are simple, robust, and versatile supervised machine learning algorithms, which store all training data points as their learned “model” and make the prediction of a new test data point by computing the distances between the query point and all the training data points. Quantum counterparts of these classical algorithms provide efficient and elegant ways to deal with the two major issues of storing data in memory and computing the distances. The purpose of our study is to select two similar quantum nearest neighbor algorithms and use a simple dataset to give insight into how they work, highlight their quantum nature, and compare their performances on IBM’s quantum simulator.

DOI
10.4236/ns.2018.103010

Related papers

An Experimental Study on the Differences between Classical Machine Learning and Quantum Machine Learning Models

Vineet Kumar Rai, Subrata Sahana

The field of Machine Learning (ML) brought a massive revolution and change in how normal day operations used to happen in various businesses. The idea of ML was quite simple, merging two separate fields, Mathematics and Computer Science. This simple idea is the very reason that so many predictive and classification-based applications exist today. The development of such applications is a time-consuming process and is very computationally heavy because in the corporate world, a very large amount of historical data is used and processed. The training processes such as pre-processing, data engineering and transformations, deep learning, training and testing are themselves time consuming. A very new field of computer science deals with solving this exact problem of time consumption. Quantum Computing (QC) tries to solve these problems by using the concepts of Quantum Mechanics during computations. The QC technology claims to be not only fast in its computational speed but also more efficient and accurate as well. The following article consists of an experiment conducted where a machine learning model is trained in a classical computing environment using K-Nearest Neighbors (KNN) algorithm versus in a quantum computing environment using Quantum K-Nearest Neighbors (QKNN) algorithm.

Global Journal of Novel Research in Applied Sciences (NRAS)•Jan 20, 2023•0 citations

Quantum Nearest-Neighbor Algorithms for Machine Learning

Nathan Wiebe, Ashish Kapoor, Krysta M. Svore

We present several quantum algorithms for performing nearest-neighbor learning. At the core of our algorithms are fast and coherent quantum methods for computing distance metrics such as the inner product and Euclidean distance. We prove upper bounds on the number of queries to the input data required to compute these metrics. In the worst case, our quantum algorithms lead to polynomial reductions in query complexity relative to the corresponding classical algorithm. In certain cases, we show exponential or even super-exponential reductions over the classical analog. We study the performance of our quantum nearest-neighbor algorithms on several real-world binary classification tasks and find that the classification accuracy is competitive with classical methods.

Quantum Information and Computation•Jan 9, 2014•68 citations

Quantum Algorithms for Nearest-Neighbor Methods for Supervised and Unsupervised Learning

Nathan Wiebe, Ashish Kapoor, Krysta M. Svore

We present several quantum algorithms for performing nearest-neighbor learning. At the core of our algorithms are fast and coherent quantum methods for computing distance metrics such as the inner product and Euclidean distance. We prove upper bounds on the number of queries to the input data required to compute these metrics. In the worst case, our quantum algorithms lead to polynomial reductions in query complexity relative to the corresponding classical algorithm. In certain cases, we show exponential or even super-exponential reductions over the classical analog. We study the performance of our quantum nearest-neighbor algorithms on several real-world binary classification tasks and find that the classification accuracy is competitive with classical methods.

arXiv:1401.2142•Jan 9, 2014•8 citations

Quantum-Assisted Simulation: A Framework for Developing Machine Learning Models in Quantum Computing

Minati Rath, Hema Date

Machine Learning (ML) models are trained using historical data to classify new, unseen data. However, traditional computing resources often struggle to handle the immense amount of data, commonly known as Big Data, within a reasonable time frame. Quantum Computing (QC) provides a novel approach to information processing, offering the potential to process classical data exponentially faster than classical computing through quantum algorithms. By mapping Quantum Machine Learning (QML) algorithms into the quantum mechanical domain, we can potentially achieve exponential improvements in data processing speed, reduced resource requirements, and enhanced accuracy and efficiency. In this article, we delve into both the QC and ML fields, exploring the interplay of ideas between them, as well as the current capabilities and limitations of hardware. We investigate the history of quantum computing, examine existing QML algorithms, and present a simplified procedure for setting up simulations of QML algorithms, making it accessible and understandable for readers. Furthermore, we conduct simulations on a dataset using both traditional machine learning and quantum machine learning approaches. We then compare their respective performances by utilizing a quantum simulator.

arXiv:2311.10363•Nov 17, 2023•0 citations

Quantum Ensemble for Classification

Antonio Macaluso, L. Clissa, Stefano Lodi +1 more

A powerful way to improve performance in machine learning is to construct an ensemble that combines the predictions of multiple models. Ensemble methods are often much more accurate and lower variance than the individual classifiers that make them up but have high requirements in terms of memory and computational time. In fact, a large number of alternative algorithms is usually adopted, each requiring to query all available data. We propose a new quantum algorithm that exploits quantum superposition, entanglement and interference to build an ensemble of classification models. Thanks to the generation of the several quantum trajectories in superposition, we obtain $B$ transformations of the quantum state which encodes the training set in only $log\left(B\right)$ operations. This implies exponential growth of the ensemble size while increasing linearly the depth of the correspondent circuit. Furthermore, when considering the overall cost of the algorithm, we show that the training of a single weak classifier impacts additively the overall time complexity rather than multiplicatively, as it usually happens in classical ensemble methods. We also present small-scale experiments on real-world datasets, defining a quantum version of the cosine classifier and using the IBM qiskit environment to show how the algorithms work.

arXiv:2007.01028•Jul 2, 2020•9 citations

Unlocking Big Data with Quantum Machine Learning

Dr.Farheen Mohammed

Abstract - The exponential growth of large-scale data has created significant challenges in storage, processing, and optimization that classical computing systems struggle to address efficiently. Quantum Machine Learning (QML) has emerged as a promising paradigm that integrates quantum computing concepts with machine learning techniques to tackle complex big data optimization problems. By utilizing quantum features such as superposition, entanglement, and parallelism, QML algorithms can accelerate tasks like clustering, classification, and dimensionality reduction, which are traditionally computationally demanding. Recent advancements indicate strong potential for quantum-inspired optimization in fields including cybersecurity, financial portfolio management, Industry 4.0, and healthcare analytics. This paper provides a comprehensive survey of QML algorithms designed for big data optimization, examining their advantages, limitations, and application domains. Additionally, it discusses the performance trade-offs associated with hybrid quantum–classical frameworks and highlights future research directions aimed at creating secure, scalable, and resource-efficient quantum solutions for large-scale, data-driven decision-making. As data volumes continue to expand at extremely rapid rates, processing big data with traditional machine learning (ML) techniques has become increasingly challenging. ML models often struggle with issues related to computational power, efficient parameter tuning, accurate model selection, and maintaining high performance when dealing with massive datasets. Deep learning approaches—such as convolutional neural networks (CNNs)—demand substantial computational resources to train on large-scale supervised learning tasks. Moreover, the difficulty of training these networks grows significantly as the size and complexity of the datasets increase. In response to these limitations, Quantum Machine Learning (QML) has emerged as a promising research domain at the intersection of quantum computing and machine learning. Quantum computers operate fundamentally differently from classical systems, using the principles of quantum mechanics to encode and process information. As a result, quantum computational methods have the potential to address certain problems that are computationally intensive or infeasible for classical machines. Index Terms— Quantum Machine Learning (QML); Big Data Optimization; Quantum Algorithms; Hybrid Quantum-Classical Models; Quantum Computing; Data Analytics

INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT•Dec 5, 2025•0 citations
Today computers are used to store data in memory and then process them. In our big data era, we are facing the challenge of storing and processing the data simply due to their fast ever growing size. Quantum computation offers solutions to these two prominent issues quantum mechanically and beautifully. Through careful design to employ superposition, entanglement, and interference of quantum states, a quantum algorithm can allow a quantum computer to store datasets of exponentially large size as linear size and then process them in parallel. Quantum computing has found its way in the world of machine learning where new ideas and approaches are in great need as the classical computers have reached their capacity and the demand for processing big data grows much faster than the computing power the classical computers can provide today. Nearest neighbor algorithms are simple, robust, and versatile supervised machine learning algorithms, which store all training data points as their learned “model” and make the prediction of a new test data point by computing the distances between the query point and all the training data points. Quantum counterparts of these classical algorithms provide efficient and elegant ways to deal with the two major issues of storing data in memory and computing the distances. The purpose of our study is to select two similar quantum nearest neighbor algorithms and use a simple dataset to give insight into how they work, highlight their quantum nature, and compare their performances on IBM’s quantum simulator.
The field of Machine Learning (ML) brought a massive revolution and change in how normal day operations used to happen in various businesses. The idea of ML was quite simple, merging two separate fields, Mathematics and Computer Science. This simple idea is the very reason that so many predictive and classification-based applications exist today. The development of such applications is a time-consuming process and is very computationally heavy because in the corporate world, a very large amount of historical data is used and processed. The training processes such as pre-processing, data engineering and transformations, deep learning, training and testing are themselves time consuming. A very new field of computer science deals with solving this exact problem of time consumption. Quantum Computing (QC) tries to solve these problems by using the concepts of Quantum Mechanics during computations. The QC technology claims to be not only fast in its computational speed but also more efficient and accurate as well. The following article consists of an experiment conducted where a machine learning model is trained in a classical computing environment using K-Nearest Neighbors (KNN) algorithm versus in a quantum computing environment using Quantum K-Nearest Neighbors (QKNN) algorithm.
We present several quantum algorithms for performing nearest-neighbor learning. At the core of our algorithms are fast and coherent quantum methods for computing distance metrics such as the inner product and Euclidean distance. We prove upper bounds on the number of queries to the input data required to compute these metrics. In the worst case, our quantum algorithms lead to polynomial reductions in query complexity relative to the corresponding classical algorithm. In certain cases, we show exponential or even super-exponential reductions over the classical analog. We study the performance of our quantum nearest-neighbor algorithms on several real-world binary classification tasks and find that the classification accuracy is competitive with classical methods.
We present several quantum algorithms for performing nearest-neighbor learning. At the core of our algorithms are fast and coherent quantum methods for computing distance metrics such as the inner product and Euclidean distance. We prove upper bounds on the number of queries to the input data required to compute these metrics. In the worst case, our quantum algorithms lead to polynomial reductions in query complexity relative to the corresponding classical algorithm. In certain cases, we show exponential or even super-exponential reductions over the classical analog. We study the performance of our quantum nearest-neighbor algorithms on several real-world binary classification tasks and find that the classification accuracy is competitive with classical methods.
Machine Learning (ML) models are trained using historical data to classify new, unseen data. However, traditional computing resources often struggle to handle the immense amount of data, commonly known as Big Data, within a reasonable time frame. Quantum Computing (QC) provides a novel approach to information processing, offering the potential to process classical data exponentially faster than classical computing through quantum algorithms. By mapping Quantum Machine Learning (QML) algorithms into the quantum mechanical domain, we can potentially achieve exponential improvements in data processing speed, reduced resource requirements, and enhanced accuracy and efficiency. In this article, we delve into both the QC and ML fields, exploring the interplay of ideas between them, as well as the current capabilities and limitations of hardware. We investigate the history of quantum computing, examine existing QML algorithms, and present a simplified procedure for setting up simulations of QML algorithms, making it accessible and understandable for readers. Furthermore, we conduct simulations on a dataset using both traditional machine learning and quantum machine learning approaches. We then compare their respective performances by utilizing a quantum simulator.
A powerful way to improve performance in machine learning is to construct an ensemble that combines the predictions of multiple models. Ensemble methods are often much more accurate and lower variance than the individual classifiers that make them up but have high requirements in terms of memory and computational time. In fact, a large number of alternative algorithms is usually adopted, each requiring to query all available data. We propose a new quantum algorithm that exploits quantum superposition, entanglement and interference to build an ensemble of classification models. Thanks to the generation of the several quantum trajectories in superposition, we obtain BBB transformations of the quantum state which encodes the training set in only log(B)log\left(B\right)log(B) operations. This implies exponential growth of the ensemble size while increasing linearly the depth of the correspondent circuit. Furthermore, when considering the overall cost of the algorithm, we show that the training of a single weak classifier impacts additively the overall time complexity rather than multiplicatively, as it usually happens in classical ensemble methods. We also present small-scale experiments on real-world datasets, defining a quantum version of the cosine classifier and using the IBM qiskit environment to show how the algorithms work.
Abstract - The exponential growth of large-scale data has created significant challenges in storage, processing, and optimization that classical computing systems struggle to address efficiently. Quantum Machine Learning (QML) has emerged as a promising paradigm that integrates quantum computing concepts with machine learning techniques to tackle complex big data optimization problems. By utilizing quantum features such as superposition, entanglement, and parallelism, QML algorithms can accelerate tasks like clustering, classification, and dimensionality reduction, which are traditionally computationally demanding. Recent advancements indicate strong potential for quantum-inspired optimization in fields including cybersecurity, financial portfolio management, Industry 4.0, and healthcare analytics. This paper provides a comprehensive survey of QML algorithms designed for big data optimization, examining their advantages, limitations, and application domains. Additionally, it discusses the performance trade-offs associated with hybrid quantum–classical frameworks and highlights future research directions aimed at creating secure, scalable, and resource-efficient quantum solutions for large-scale, data-driven decision-making. As data volumes continue to expand at extremely rapid rates, processing big data with traditional machine learning (ML) techniques has become increasingly challenging. ML models often struggle with issues related to computational power, efficient parameter tuning, accurate model selection, and maintaining high performance when dealing with massive datasets. Deep learning approaches—such as convolutional neural networks (CNNs)—demand substantial computational resources to train on large-scale supervised learning tasks. Moreover, the difficulty of training these networks grows significantly as the size and complexity of the datasets increase. In response to these limitations, Quantum Machine Learning (QML) has emerged as a promising research domain at the intersection of quantum computing and machine learning. Quantum computers operate fundamentally differently from classical systems, using the principles of quantum mechanics to encode and process information. As a result, quantum computational methods have the potential to address certain problems that are computationally intensive or infeasible for classical machines. Index Terms— Quantum Machine Learning (QML); Big Data Optimization; Quantum Algorithms; Hybrid Quantum-Classical Models; Quantum Computing; Data Analytics