We introduce here a supervised quantum machine learning algorithm for multi-class classification on NISQ architectures. A parametric quantum circuit is trained to output a specific bit string corresponding to the class of the input datapoint. We train and test it on an IBMq 5-qubit quantum computer and the algorithm shows good accuracy - compared to a classical machine learning model - for ternary classification of the Iris dataset and an extension of the XOR problem. Furthermore, we evaluate with simulations how the algorithm fares for a binary and a quaternary classification on resp. a known binary dataset and a synthetic dataset.
We introduce here a supervised quantum machine learning algorithm for multi-class classification on NISQ architectures. A parametric quantum circuit is trained to output a specific bit string corresponding to the class of the input datapoint. We train and test it on an IBMq 5-qubit quantum computer and the algorithm shows good accuracy - compared to a classical machine learning model - for ternary classification of the Iris dataset and an extension of the XOR problem. Furthermore, we evaluate with simulations how the algorithm fares for a binary and a quaternary classification on resp. a known binary dataset and a synthetic dataset.
We implement a quantum binary classifier where given a dataset of pairs of training inputs and target outputs our goal is to predict the output of a new input. The script is based in a hybrid scheme inspired in an existing PennyLane's variational classifier and to encode the classical data we resort to PennyLane's amplitude encoding embedding template. We use the quantum binary classifier applied to the well known Iris dataset and to a car traffic dataset. Our results show that the quantum approach is capable of performing the task using as few as 2 qubits. Accuracies are similar to other quantum machine learning research studies, and as good as the ones produced by classical classifiers.
Abstract Quantum circuits with hierarchical structure have been used to perform binary classification of classical data encoded in a quantum state. We demonstrate that more expressive circuits in the same family achieve better accuracy and can be used to classify highly entangled quantum states, for which there is no known efficient classical method. We compare performance for several different parameterizations on two classical machine learning datasets, Iris and MNIST, and on a synthetic dataset of quantum states. Finally, we demonstrate that performance is robust to noise and deploy an Iris dataset classifier on the ibmqx4 quantum computer.
This study presents a Quantum Machine Learning (QML) architecture for perfectly classifying the Iris flower dataset. The research addresses improving classification accuracy using quantum models in machine-learning tasks. The objective is to demonstrate the effectiveness of QML approaches, specifically the Variational Quantum Circuit (VQC), Quantum Neural Network (QNN), and Quantum Support Vector Machine (QSVM), in achieving high performance on the Iris dataset. The proposed methods result in perfect classification, with all models attaining accuracy, precision, recall, and an F1-score of 1.00. The main finding is that the QML architecture successfully achieves flawless classification, contributing significantly to the field. These results underscore the potential of QML in solving complex classification problems and highlight its promise for future applications across various domains. The study concludes that QML techniques can offer transformative solutions in machine learning tasks, particularly those leveraging VQC, QNN, and QSVM.
Quantum Machine Learning (QML) is a newly emerging research area at the intersection of classical machine learning (CML) and quantum computing (QC). Data is becoming voluminous rapidly, so it is challenging for classical computers to train Machine Learning (ML) models over massive datasets. The hope is that quantum physics' intrinsic features, such as entanglement, superposition, and interference, could be exploited as resources for training ML models on big datasets that would otherwise be relatively impossible for classical computers. It is theoretically proven that quantum computers have an exponential-time advantage over their classical counterparts in solving several problems, e.g., complex large dimensional matrix multiplication, factorization problem, unstructured database search, etc. QML models attempt to find a quantum advantage over their classical counterparts. Variational Quantum Classifiers (VQC) are hybrid quantum neural networks to perform the task of classification using QML models. VQC models in the present NISQ (Noisy Intermediate Scale Quantum — 50 to 100 qubits) era can produce comparable and even better results than Classical models. In this article, we examined the performance of a VQC while performing a simple binary classification task. In this article, we use a VQC to evaluate this method's performance empirically. We constructed a VQC to predict the label of fresh input for the typical Iris dataset comprising pairings of target outputs and training inputs. Our quantum classifier can reasonably predict species labels using only four qubits. These levels are fairly good compared to the accuracy levels attained by classical classifiers.
With the advancement of quantum computing in the Noisy Intermediate-Scale Quantum (NISQ) era, hybrid quantum-classical algorithms have emerged as promising approaches for addressing certain machine learning tasks. This study investigates the Variational Quantum Classifier (VQC), a hybrid model that integrates parameterized quantum circuits with classical optimization routines, implemented via IBM’s Qiskit framework. We provide a detailed account of the VQC architecture, including feature encoding, ansatz construction, and optimization methodology. To assess its performance, we conduct a comparative analysis between VQC and classical Support Vector Classifiers (SVC) across synthetic and real-world datasets, including Iris and a binary-filtered version of MNIST. Experimental results reveal that classical models consistently achieve higher accuracy and faster training times. However, the VQC demonstrates functional viability, particularly under noise-free conditions and reduced-dimensionality settings. These findings underscore the current limitations of quantum models while highlighting the potential of VQC as a proof-of-concept for quantum-enhanced learning as quantum hardware matures.
Abstract Hybrid quantum machine learning combines classical minimization with parameterized quantum circuits, enabling powerful learning models even on near-term quantum hardware. This work presents an evaluation of hybrid quantum machine learning classifiers using the data re-uploading framework across nine binary and multi-class classification tasks with varying geometric complexity. We compare three quantum circuit architectures, single-qubit, two-qubit, and two-qubit entangled, trained with three classical minimizers: COBYLA, Nelder-Mead, and SLSQP. Our experiments span training sizes from 1 to 200 samples and reveal that two-qubit classifiers, when paired with the SLSQP minimizer, achieve the highest overall test accuracy of 99.775% on structured tasks and strong performance (up to 89.78%) on complex multi-class pattern. Among minimizers, SLSQP consistently provides the best generalization, while entanglement improves accuracy in non-linear and fragmented tasks. By analyzing accuracy trends, generalization gaps, and confusion matrices, this study offers practical guidance for designing quantum classifiers that scale effectively and generalize well, providing a foundation for real-world Hybrid quantum machine learning applications.