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

arXiv:2606.10150

Towards the implementation of a quantum classifier

Lorenzo Confalonieri

quant-phhep-exphysics.comp-phSubmitted Jun 8, 2026• Announced Jun 10, 2026• 0 citations• Revised Jun 10, 2026 (v2)
v1 · Jun 8, 2026v2 · Jun 10, 2026
arXivHTMLPDF

Abstract

In this work, we investigate the use of a quantum circuit as a binary classification model in the context of quantum machine learning. We call this model, binary quantum classifier. First, we describe fundamental concepts of quantum computing and introduce the computational tool used: Qibo, an open-source framework for efficient quantum simulations and quantum hardware control. Then, we describe how to design a binary quantum classifier for the classification of images and small arrays of variables by showing how to input data in the circuit, defining a quantum circuit model Ansatz with trainable parameters and a loss function, and implementing multiple minimizers. We test our quantum classifier with two data sets. The first one is the MNIST data set which is composed of handwritten digits (reduced to only handwritten zeros and handwritten ones for binary classification). We study the behavior of different minimizers by increasing the number of layers of the Ansatz. The second data set represents two different high energy collisions that can occur at colliders such as LHC (CERN). Due to in-time proton-proton interactions known as pile-up, we distinguish two different data sets: "without pile-up" and "with pile-up". These collisions can be represented by images of size 32x32 or by six high-level variables that we call features. By increasing the size of the training data set and the number of layers of the Ansatz, we search for the best minimizer. Splitting the data set in training set and test set, we compute: ROC curve, AUC score, confusion matrices and test set accuracy. For "with pile-up" images, we compare the results obtained with the quantum classifier with a small convolutional neural network. We conclude that is possible to build a binary quantum classifier with a quantum circuit and we highlight its performances and limitations in comparison with classical technologies.

Comments
Bachelor's Thesis in Physics, Lorenzo Confalonieri, supervised by Adrián Pérez-Salinas and Stefano Carrazza, Università degli Studi di Milano (July 2021). 55 pages, 28 figures. Code implementations utilize the Qibo framework

Related papers

Quantum machine learning for image classification

Arsenii Senokosov, Alexandr Sedykh, Asel Sagingalieva +2 more

Abstract Image classification, a pivotal task in multiple industries, faces computational challenges due to the burgeoning volume of visual data. This research addresses these challenges by introducing two quantum machine learning models that leverage the principles of quantum mechanics for effective computations. Our first model, a hybrid quantum neural network with parallel quantum circuits, enables the execution of computations even in the noisy intermediate-scale quantum era, where circuits with a large number of qubits are currently infeasible. This model demonstrated a record-breaking classification accuracy of 99.21% on the full MNIST dataset, surpassing the performance of known quantum–classical models, while having eight times fewer parameters than its classical counterpart. Also, the results of testing this hybrid model on a Medical MNIST (classification accuracy over 99%), and on CIFAR-10 (classification accuracy over 82%), can serve as evidence of the generalizability of the model and highlights the efficiency of quantum layers in distinguishing common features of input data. Our second model introduces a hybrid quantum neural network with a Quanvolutional layer, reducing image resolution via a convolution process. The model matches the performance of its classical counterpart, having four times fewer trainable parameters, and outperforms a classical model with equal weight parameters. These models represent advancements in quantum machine learning research and illuminate the path towards more accurate image classification systems.

arXiv:2304.09224•Machine Learning Science and Technology•Feb 20, 2024•181 citations

Handwritten Numeric Image Classification with Quantum Neural Network using Quantum Computer Circuit Simulator

Achmad Benny Mutiara, Muhammad Amir, Rina Refianti +1 more

Quantum Computer is a computer machine using principles of quantum mechanics in doing its computation. The Quantum Computer Machine itself is still in the development stage and has not been deployed yet, however TensorFlow provides a library for hybrid quantum-classical machine learning called TensorFlow Quantum (TFQ). One of the quantum computing models is the Quantum Neural Network (QNN). QNN is adapted from classical neural networks capable of processing qubit data and passing quantum circuits. QNN is a machine learning model that allows quantum computers to classify image data. The image data used is classical data, but classical data cannot reach a superposition state. So in order to carry out this protocol, the data must be readable into a quantum device that provides superposition. QNN uses a supervised learning method to predict image data. Quantum Neural Network (QNN) with a supervised learning method for classifying handwritten numeric image data is implemented using a quantum computer circuit simulation using the Python 3.6 programming language. The quantum computer circuit simulation is designed using library Cirq and TFQ. The classification process is carried out on Google Colab. The results of training on the QNN model obtained a value of 0.337 for the loss value and 0.3427 for the validation loss value. Meanwhile, the hinge accuracy value from the training results is 0.8603 for the hinge accuracy value with training data and 0.8669 for the hinge accuracy validation value. Model testing is done by providing 100 handwritten number images that are tested, with 53 image data of number three and 47 image data of number six. The results obtained for the percentage of testing accuracy are 100% for the number three image and 100% for the number six image. Thus, the total percentage of testing is 100%.

International Journal of Advanced Computer Science and Applications•Jan 1, 2020•5 citations

MNIST quantum classification models implementation and benchmarking

Sirawit Butmaratthaya, Niti Buesamae, Unchalisa Taetragool

Quantum machine learning is a new field of study that aims to apply the advantages of quantum computing, such as superposition, which is one of the intriguing properties that could speed up computation, to machine learning. Like classical machine learning models, quantum machine learning models can learn from specific input data and perform specific prediction tasks. However, quantum machine learning models are currently in the form of quantum circuits with parameterizable gates. In this paper, the implementation of a quantum classification model is investigated using the two most well-known quantum machine learning development tools: Cirq with TensorFlow Quantum (TFQ) and Qiskit with PyTorch. The quantum classification circuit is trained to recognize images of handwritten digits using the MNIST dataset. However, because the quantum computer is still in development and is difficult to access and use, quantum simulators are the best alternative for the time being. The performance of the quantum classification model implemented by the two development tools is then compared in this paper experimentally using quantum simulators on two different hardware configurations. In addition, the experimental setups differ in the number of input qubits used to store the image’s classical pixel values. Finally, the wall time and CPU time used to run the training process, as well as classification accuracy, are examined. In terms of accuracy, Qiskit with PyTorch outperforms Cirq with TFQ only in the lower number of qubits but the results are similar in the higher number of qubits. The experiment results in terms of run-time are highly different. From the result, we find that Cirq is noticeably faster than Qiskit in every experiment by at least 90 times.

AIP conference proceedings•Jan 1, 2023•1 citation

Quantum computing in image recognition: A comparative analysis with classical models

Aakanshi Gupta, Yash Sing, Harshit Agrawal +4 more

This research explores quantum machine learning for image classification, comparing classical and quantum models. A classical convolutional neural network (CNN), based on the LeNet architecture, achieved 99.12% accuracy on MNIST, outperforming a quantum CNN, which attained 93.30%. Quantum encoders applied to Fashion-MNIST reached 85.60%, while quantum support vector machine (SVM), implemented for binary classification, obtained 71.34%. The study integrates hybrid quantum-classical models, leveraging quantum circuits for feature extraction. A quantum autoencoder-based classifier was introduced, demonstrating efficient data compression and classification without additional qubits. Feature encoding using RX gates mapped classical data into quantum states, and the impact of parameterized quantum circuit structures on classification accuracy was analyzed. Results indicate that specific ansatz structures yield superior accuracy, highlighting the significance of quantum circuit design. While classical models currently outperform quantum counterparts, quantum approaches reduce trainable parameters and computational complexity. Limitations in current quantum hardware, including noise and scalability, restrict performance. However, advancements in error mitigation, quantum gate efficiency, and scalable quantum architecture could bridge the gap with classical methods. These quantum techniques hold potential in aerospace applications, such as satellite image classification, anomaly detection in remote sensing, and real-time processing of high-dimensional image data. This study underscores the growing role of quantum circuits in machine learning, particularly in feature extraction and classification, suggesting that future quantum hardware could unlock new capabilities in end-to-end learning beyond hybrid approaches.

CRC Press eBooks•Mar 19, 2026•0 citations

Characterizing Quantum Classifier Utility in Natural Language Processing Workflows

Kathleen E. Hamilton, Mayanka Chandrashekar, John P. Gounley +5 more

Quantum Natural Language Processing (QNLP) develops natural language processing (NLP) models for deployment on quantum computers. We explore feature and data prototype selection techniques to address challenges posed by encoding high dimensional features. Our study builds quantum circuit classifiers that includes classical feature pre-processing, quantum embedding and quantum model training. The quantum models are built on 4 or 6 qubits and the quantum neural network (QNN) uses the established bricklayer design. We compare the dependence of model performance (in terms of accuracy and F1 scores) on feature length, embedding gates and parameterized unitary design. We compare the performance of quantum machine learning models to classical convolution neural network model (CNN) on binary and multi-class classification tasks using two datasets of synthetic features and labels. The first is the ECP-CANDLE P3B3 dataset a corpus of synthetically generated cancer pathology reports. The second dataset is extracted from well-known benchmark dataset (MADELON) - features are generated with a combination of informative, repeated and uninformative features. Both datasets are used for binary classification and multi-class classification with 3 classes. We observe robust, accurate performance from all models on the binary classification tasks, but multiclass classification is a challenge for the quantum models-there is a notable decrease in accuracy when using 3 classes. Overall the performance is comparable in terms of recall and accuracy between QNNs and CNNs, even with large datasets. These results provide a point of comparison between quantum and classical models on real-world datasets.

IEEE International Conference on Quantum Computing and Engineering (QCE)•Sep 17, 2023•1 citation

WITHDRAWN: Evaluation of Different Ansatze Designs for Quantum Neural Network Binary Classifiers

Maha A. Metawei, Hazem Said, Mohamed Taher +2 more

Abstract For classification problems, ansatz circuits are an efficient and promising quantum-classical machine learning technique. However, a difficult design challenge arises: which quantum circuit should be used for model training? Low depth ansatz circuits have been used in a variety of applications in recent years. The earlier works defined several quantum circuit descriptors to evaluate an ansatz design such as the circuit expressibility, the efficiency with which a quantum circuit may exploit the Hilbert Space, and the entanglement capability, a circuit's capability of detecting data correlation. Additionally in this work, we investigate, measure, and analyze the effect of the number of ansatz repetition layers L, and the expressibility power of the data encoding module. The proposed quantum neural network classifiers were trained on four different classical datasets using 19 hardware-efficient parametrized circuits. The heuristic experimental results show that ansatz designs with high to moderate expressibiliy values outperformed ones with low expressibility values. By analyzing the circuit cost, we see a tendency toward maximizing the number of parameters which helps in the QNN model's convergence. On simulated hardware, we observe that the proposed quantum neural network achieves up to 97.5\% prediction accuracy using the angle data encoding module.

•Oct 17, 2022•3 citations
In this work, we investigate the use of a quantum circuit as a binary classification model in the context of quantum machine learning. We call this model, binary quantum classifier.
First, we describe fundamental concepts of quantum computing and introduce the computational tool used: Qibo, an open-source framework for efficient quantum simulations and quantum hardware control. Then, we describe how to design a binary quantum classifier for the classification of images and small arrays of variables by showing how to input data in the circuit, defining a quantum circuit model Ansatz with trainable parameters and a loss function, and implementing multiple minimizers. We test our quantum classifier with two data sets. The first one is the MNIST data set which is composed of handwritten digits (reduced to only handwritten zeros and handwritten ones for binary classification). We study the behavior of different minimizers by increasing the number of layers of the Ansatz. The second data set represents two different high energy collisions that can occur at colliders such as LHC (CERN). Due to in-time proton-proton interactions known as pile-up, we distinguish two different data sets: "without pile-up" and "with pile-up". These collisions can be represented by images of size 32x32 or by six high-level variables that we call features. By increasing the size of the training data set and the number of layers of the Ansatz, we search for the best minimizer. Splitting the data set in training set and test set, we compute: ROC curve, AUC score, confusion matrices and test set accuracy. For "with pile-up" images, we compare the results obtained with the quantum classifier with a small convolutional neural network.
We conclude that is possible to build a binary quantum classifier with a quantum circuit and we highlight its performances and limitations in comparison with classical technologies.
Abstract Image classification, a pivotal task in multiple industries, faces computational challenges due to the burgeoning volume of visual data. This research addresses these challenges by introducing two quantum machine learning models that leverage the principles of quantum mechanics for effective computations. Our first model, a hybrid quantum neural network with parallel quantum circuits, enables the execution of computations even in the noisy intermediate-scale quantum era, where circuits with a large number of qubits are currently infeasible. This model demonstrated a record-breaking classification accuracy of 99.21% on the full MNIST dataset, surpassing the performance of known quantum–classical models, while having eight times fewer parameters than its classical counterpart. Also, the results of testing this hybrid model on a Medical MNIST (classification accuracy over 99%), and on CIFAR-10 (classification accuracy over 82%), can serve as evidence of the generalizability of the model and highlights the efficiency of quantum layers in distinguishing common features of input data. Our second model introduces a hybrid quantum neural network with a Quanvolutional layer, reducing image resolution via a convolution process. The model matches the performance of its classical counterpart, having four times fewer trainable parameters, and outperforms a classical model with equal weight parameters. These models represent advancements in quantum machine learning research and illuminate the path towards more accurate image classification systems.
Quantum Computer is a computer machine using principles of quantum mechanics in doing its computation. The Quantum Computer Machine itself is still in the development stage and has not been deployed yet, however TensorFlow provides a library for hybrid quantum-classical machine learning called TensorFlow Quantum (TFQ). One of the quantum computing models is the Quantum Neural Network (QNN). QNN is adapted from classical neural networks capable of processing qubit data and passing quantum circuits. QNN is a machine learning model that allows quantum computers to classify image data. The image data used is classical data, but classical data cannot reach a superposition state. So in order to carry out this protocol, the data must be readable into a quantum device that provides superposition. QNN uses a supervised learning method to predict image data. Quantum Neural Network (QNN) with a supervised learning method for classifying handwritten numeric image data is implemented using a quantum computer circuit simulation using the Python 3.6 programming language. The quantum computer circuit simulation is designed using library Cirq and TFQ. The classification process is carried out on Google Colab. The results of training on the QNN model obtained a value of 0.337 for the loss value and 0.3427 for the validation loss value. Meanwhile, the hinge accuracy value from the training results is 0.8603 for the hinge accuracy value with training data and 0.8669 for the hinge accuracy validation value. Model testing is done by providing 100 handwritten number images that are tested, with 53 image data of number three and 47 image data of number six. The results obtained for the percentage of testing accuracy are 100% for the number three image and 100% for the number six image. Thus, the total percentage of testing is 100%.
Quantum machine learning is a new field of study that aims to apply the advantages of quantum computing, such as superposition, which is one of the intriguing properties that could speed up computation, to machine learning. Like classical machine learning models, quantum machine learning models can learn from specific input data and perform specific prediction tasks. However, quantum machine learning models are currently in the form of quantum circuits with parameterizable gates. In this paper, the implementation of a quantum classification model is investigated using the two most well-known quantum machine learning development tools: Cirq with TensorFlow Quantum (TFQ) and Qiskit with PyTorch. The quantum classification circuit is trained to recognize images of handwritten digits using the MNIST dataset. However, because the quantum computer is still in development and is difficult to access and use, quantum simulators are the best alternative for the time being. The performance of the quantum classification model implemented by the two development tools is then compared in this paper experimentally using quantum simulators on two different hardware configurations. In addition, the experimental setups differ in the number of input qubits used to store the image’s classical pixel values. Finally, the wall time and CPU time used to run the training process, as well as classification accuracy, are examined. In terms of accuracy, Qiskit with PyTorch outperforms Cirq with TFQ only in the lower number of qubits but the results are similar in the higher number of qubits. The experiment results in terms of run-time are highly different. From the result, we find that Cirq is noticeably faster than Qiskit in every experiment by at least 90 times.
This research explores quantum machine learning for image classification, comparing classical and quantum models. A classical convolutional neural network (CNN), based on the LeNet architecture, achieved 99.12% accuracy on MNIST, outperforming a quantum CNN, which attained 93.30%. Quantum encoders applied to Fashion-MNIST reached 85.60%, while quantum support vector machine (SVM), implemented for binary classification, obtained 71.34%. The study integrates hybrid quantum-classical models, leveraging quantum circuits for feature extraction. A quantum autoencoder-based classifier was introduced, demonstrating efficient data compression and classification without additional qubits. Feature encoding using RX gates mapped classical data into quantum states, and the impact of parameterized quantum circuit structures on classification accuracy was analyzed. Results indicate that specific ansatz structures yield superior accuracy, highlighting the significance of quantum circuit design. While classical models currently outperform quantum counterparts, quantum approaches reduce trainable parameters and computational complexity. Limitations in current quantum hardware, including noise and scalability, restrict performance. However, advancements in error mitigation, quantum gate efficiency, and scalable quantum architecture could bridge the gap with classical methods. These quantum techniques hold potential in aerospace applications, such as satellite image classification, anomaly detection in remote sensing, and real-time processing of high-dimensional image data. This study underscores the growing role of quantum circuits in machine learning, particularly in feature extraction and classification, suggesting that future quantum hardware could unlock new capabilities in end-to-end learning beyond hybrid approaches.
Quantum Natural Language Processing (QNLP) develops natural language processing (NLP) models for deployment on quantum computers. We explore feature and data prototype selection techniques to address challenges posed by encoding high dimensional features. Our study builds quantum circuit classifiers that includes classical feature pre-processing, quantum embedding and quantum model training. The quantum models are built on 4 or 6 qubits and the quantum neural network (QNN) uses the established bricklayer design. We compare the dependence of model performance (in terms of accuracy and F1 scores) on feature length, embedding gates and parameterized unitary design. We compare the performance of quantum machine learning models to classical convolution neural network model (CNN) on binary and multi-class classification tasks using two datasets of synthetic features and labels. The first is the ECP-CANDLE P3B3 dataset a corpus of synthetically generated cancer pathology reports. The second dataset is extracted from well-known benchmark dataset (MADELON) - features are generated with a combination of informative, repeated and uninformative features. Both datasets are used for binary classification and multi-class classification with 3 classes. We observe robust, accurate performance from all models on the binary classification tasks, but multiclass classification is a challenge for the quantum models-there is a notable decrease in accuracy when using 3 classes. Overall the performance is comparable in terms of recall and accuracy between QNNs and CNNs, even with large datasets. These results provide a point of comparison between quantum and classical models on real-world datasets.
Abstract For classification problems, ansatz circuits are an efficient and promising quantum-classical machine learning technique. However, a difficult design challenge arises: which quantum circuit should be used for model training? Low depth ansatz circuits have been used in a variety of applications in recent years. The earlier works defined several quantum circuit descriptors to evaluate an ansatz design such as the circuit expressibility, the efficiency with which a quantum circuit may exploit the Hilbert Space, and the entanglement capability, a circuit's capability of detecting data correlation. Additionally in this work, we investigate, measure, and analyze the effect of the number of ansatz repetition layers L, and the expressibility power of the data encoding module. The proposed quantum neural network classifiers were trained on four different classical datasets using 19 hardware-efficient parametrized circuits. The heuristic experimental results show that ansatz designs with high to moderate expressibiliy values outperformed ones with low expressibility values. By analyzing the circuit cost, we see a tendency toward maximizing the number of parameters which helps in the QNN model's convergence. On simulated hardware, we observe that the proposed quantum neural network achieves up to 97.5\% prediction accuracy using the angle data encoding module.