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

International Journal of Advanced Computer Science and Applications

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

Achmad Benny Mutiara, Muhammad Amir, Rina Refianti, Yusuf Sutanto

Published Jan 1, 2020• 5 citations
Publisher

Abstract

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%.

DOI
10.14569/ijacsa.2020.0111040

Related papers

Quantum Circuit Construction for Cat and Dog Image Classification Based on Quantum Neural Network

Rui Fu, Guoqiang Lan

A quantum computer is a type of computer that uses the principles of quantum mechanics to perform calculations. Quantum computers are still in their early stages of development, but TensorFlow provides a library called TensorFlow Quantum (TFQ) for hybrid quantum classical machine learning. One of the models in quantum computing is the Quantum Neural Network (QNN). QNNs are derived from classical neural networks and are designed to handle quantum bits (qubits) and facilitate the transmission of quantum circuits. Quantum Neural Networks (QNNs) are machine learning models designed to use the principles of quantum mechanics for tasks such as image classification. They can process classical image data, but classical data cannot directly achieve superposition states, which is a key feature of quantum systems. Thus, the data must be readable and able to be appropriately input into quantum devices. QNN uses supervised learning methods to predict image data. A quantum neural network (QNN) using supervised learning was developed to classify images of cats and dogs. This implementation utilized quantum circuit simulation within the Python 3.7 programming environment.

Academic Symposium on Optoelectronics and Microelectronics Technology and Chinese-Russian Symposium on Laser Physics and Laser TechnologyOptoelectronics Technology•Nov 21, 2024•0 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

Towards the implementation of a quantum classifier

Lorenzo Confalonieri

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.

quant-pharXiv:2606.10150•Jun 10, 2026•0 citations

Quantum Neural Network Image Three-Classification Model Based on the Iris Dataset

Minglin Zhang, Xiao Chen, Zhihao Liu

Quantum neural networks, which combine quantum computing and machine learning, have become a topic of great interest due to the advancement of quantum computing. This paper introduces a pure quantum neural network model based on parameterized quantum circuits, applied to image classification using the Iris dataset. Experimental validation demonstrates superior classification accuracy in three-class tasks. Specifically, this paper innovatively uses IQP encoding to encode classical data into quantum states, and independently designs the Ansatz in the quantum neural network. Experimental results show that compared with the other three classical classification algorithms and four quantum neural network models, the pure quantum neural network model proposed in the study has the highest accuracy in image classification tasks. In addition, this article analyzes and evaluates the model’s expression characteristics and entanglement capabilities, providing a reference for further optimizing and expanding the quantum neural network model. Overall, this research provides new ideas and methods for the integration of quantum computing and machine learning, which has certain practical value and research significance.

International Conference on Computer Engineering and Application (ICCEA)•Apr 12, 2024•0 citations

An Optimized Hybrid Quantum-Classical Neural Network Model for Handwritten Digit Classification

Vu-Quoc-Minh Nguyen, Trung-Khanh Le, Trong-Tu Bui +1 more

Quantum computers are the latest dream of humans in solving nondeterministic polynomial problems. These problems include machine learning and object classification. However, commercial quantum computers are still not available. In the meantime, scientists developed hybrid models by combining Convolutional Neural Networks (CNN) and Quantum Neural Networks (QNN) to apply quantum computing to artificial intelligence (AI) applications. The hybrid model accelerates the processing of an AI machine by combining the advantage of CNN in feature extraction with the parallel computing capability of QNN. In this study, we optimized the existing hybrid models with a fewer number of qubits to improve the performance of QNN on digit recognition. The study also presents the implementation of the model using Qiskit, describes the training process, and analyzes the impact of the number of qubits and quantum gates on the classification results. Experiments show that Hybrid Quantum-Classical Neural Networks (H-QNN) have the potential to outperform pure CNN. Finally, the study suggests future improvements, including the optimization of quantum algorithms and extending experiments to more complex data sets.

International Conference on Integrated Circuits, Design, and Verification (ICDV)•Jun 16, 2025•0 citations

Hybrid Machine Learning Frameworks: Integrating Quantum and Classical Approaches for IOT

Deepa Fernandes Prabhu, H Niroshini Infantia, Maitri Patel +3 more

Image Classification is one of the major tasks in deep learning. Various deep learning methodologies like Quantum Neural Network are playing a vital role in classifying the images. In traditional neural networks neural layers are used to extract the features from the image to train the model where some of the details may be excluded. In quantum methodology parameterised circuits are used to identify complex boundaries to extract high quality features from the images. In the proposed method a hybrid QNN model is developed for binary image classification using quantum computing. Proposed model efficiently works by performing computation on Noise Intermediate-Scale Quantum (NISQ) devices. which represent the current forefront of quantum computing capabilities. This is achieved by integrating a small, two-qubit quantum circuit with a classical convolutional backbone using a tensor product state. The proposed model achieves a classification accuracy of 90.1% on binary image datasets, marking a significant improvement. Furthermore, we evaluate the generalization performance of both the H-QNN and baseline CNN models in image retrieval tasks. The results demonstrate the superior generalization capabilities of the H-QNN, especially in mitigating overfitting on small datasets, making it a promising solution for real-world applications.

Global Conference in Emerging Technology (GINOTECH)•May 9, 2025•2 citations
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%.
A quantum computer is a type of computer that uses the principles of quantum mechanics to perform calculations. Quantum computers are still in their early stages of development, but TensorFlow provides a library called TensorFlow Quantum (TFQ) for hybrid quantum classical machine learning. One of the models in quantum computing is the Quantum Neural Network (QNN). QNNs are derived from classical neural networks and are designed to handle quantum bits (qubits) and facilitate the transmission of quantum circuits. Quantum Neural Networks (QNNs) are machine learning models designed to use the principles of quantum mechanics for tasks such as image classification. They can process classical image data, but classical data cannot directly achieve superposition states, which is a key feature of quantum systems. Thus, the data must be readable and able to be appropriately input into quantum devices. QNN uses supervised learning methods to predict image data. A quantum neural network (QNN) using supervised learning was developed to classify images of cats and dogs. This implementation utilized quantum circuit simulation within the Python 3.7 programming environment.
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.
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.
Quantum neural networks, which combine quantum computing and machine learning, have become a topic of great interest due to the advancement of quantum computing. This paper introduces a pure quantum neural network model based on parameterized quantum circuits, applied to image classification using the Iris dataset. Experimental validation demonstrates superior classification accuracy in three-class tasks. Specifically, this paper innovatively uses IQP encoding to encode classical data into quantum states, and independently designs the Ansatz in the quantum neural network. Experimental results show that compared with the other three classical classification algorithms and four quantum neural network models, the pure quantum neural network model proposed in the study has the highest accuracy in image classification tasks. In addition, this article analyzes and evaluates the model’s expression characteristics and entanglement capabilities, providing a reference for further optimizing and expanding the quantum neural network model. Overall, this research provides new ideas and methods for the integration of quantum computing and machine learning, which has certain practical value and research significance.
Quantum computers are the latest dream of humans in solving nondeterministic polynomial problems. These problems include machine learning and object classification. However, commercial quantum computers are still not available. In the meantime, scientists developed hybrid models by combining Convolutional Neural Networks (CNN) and Quantum Neural Networks (QNN) to apply quantum computing to artificial intelligence (AI) applications. The hybrid model accelerates the processing of an AI machine by combining the advantage of CNN in feature extraction with the parallel computing capability of QNN. In this study, we optimized the existing hybrid models with a fewer number of qubits to improve the performance of QNN on digit recognition. The study also presents the implementation of the model using Qiskit, describes the training process, and analyzes the impact of the number of qubits and quantum gates on the classification results. Experiments show that Hybrid Quantum-Classical Neural Networks (H-QNN) have the potential to outperform pure CNN. Finally, the study suggests future improvements, including the optimization of quantum algorithms and extending experiments to more complex data sets.
Image Classification is one of the major tasks in deep learning. Various deep learning methodologies like Quantum Neural Network are playing a vital role in classifying the images. In traditional neural networks neural layers are used to extract the features from the image to train the model where some of the details may be excluded. In quantum methodology parameterised circuits are used to identify complex boundaries to extract high quality features from the images. In the proposed method a hybrid QNN model is developed for binary image classification using quantum computing. Proposed model efficiently works by performing computation on Noise Intermediate-Scale Quantum (NISQ) devices. which represent the current forefront of quantum computing capabilities. This is achieved by integrating a small, two-qubit quantum circuit with a classical convolutional backbone using a tensor product state. The proposed model achieves a classification accuracy of 90.1% on binary image datasets, marking a significant improvement. Furthermore, we evaluate the generalization performance of both the H-QNN and baseline CNN models in image retrieval tasks. The results demonstrate the superior generalization capabilities of the H-QNN, especially in mitigating overfitting on small datasets, making it a promising solution for real-world applications.