Nowadays, using machine learning for image classification is very common. However, due to the increasing demand for data processing and fast computing, the idea of enhancing machine learning with quantum computing has been proposed, known as quantum machine learning (QML). Quantum machine learning has the advantages of higher efficiency and accuracy. Quantum computing uses quantum bits (qubits) for data storage and computing, where a qubit can represent quantum states |0〉and |1〉simultaneously, enabling the processing of information for two states simultaneously, which is unparalleled in classical computing. Moreover, quantum machine learning can handle more complex data and process data faster. In classical machine learning, the processing of large-scale data and complex problems often faces problems of high computational complexity and low algorithm efficiency. Quantum computing can handle multiple computing tasks simultaneously, achieving faster computing. Therefore, in some scenarios that require efficient computing, quantum machine learning may be the best choice. In this study, we simulated quantum circuits using Qiskit and built a hybrid quantum-classical neural network model using VQNet to classify MNIST handwritten digits and CIFAR-10 datasets. The experiments showed that quantum machine learning has the advantages of efficiency, accuracy, and security over classical machine learning, which may be an improvement over classical machine learning. This research proposes a machine learning algorithm based on quantum computing, which promotes the development of quantum computing and quantum technology. At the same time, it provides a new solution and idea for image classification, enabling people to pursue faster and more accurate quantum machine learning instead of being limited to classical machine learning.[1]
Nowadays, using machine learning for image classification is very common. However, due to the increasing demand for data processing and fast computing, the idea of enhancing machine learning with quantum computing has been proposed, known as quantum machine learning (QML). Quantum machine learning has the advantages of higher efficiency and accuracy. Quantum computing uses quantum bits (qubits) for data storage and computing, where a qubit can represent quantum states |0〉and |1〉simultaneously, enabling the processing of information for two states simultaneously, which is unparalleled in classical computing. Moreover, quantum machine learning can handle more complex data and process data faster. In classical machine learning, the processing of large-scale data and complex problems often faces problems of high computational complexity and low algorithm efficiency. Quantum computing can handle multiple computing tasks simultaneously, achieving faster computing. Therefore, in some scenarios that require efficient computing, quantum machine learning may be the best choice. In this study, we simulated quantum circuits using Qiskit and built a hybrid quantum-classical neural network model using VQNet to classify MNIST handwritten digits and CIFAR-10 datasets. The experiments showed that quantum machine learning has the advantages of efficiency, accuracy, and security over classical machine learning, which may be an improvement over classical machine learning. This research proposes a machine learning algorithm based on quantum computing, which promotes the development of quantum computing and quantum technology. At the same time, it provides a new solution and idea for image classification, enabling people to pursue faster and more accurate quantum machine learning instead of being limited to classical machine learning.[1]
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 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.
Quantum Computing (QC) was born as a purely theoretical subject. Thus, in the beginning, the main category of researchers in the area was physicists and mathematicians. Since IBM introduced the first quantum computer, global interest in this emerging technology has been growing more and more, involving computer science and engineering researchers. Machine learning is another rapidly growing technology, used in a wide range of applications where traditional computing is not sufficient. The two technologies are merged in the thesis work. The different ways in which a combination of them can occur are discussed, as well as the explanation why there is not a single definition of Quantum Machine Learning (QML). Firstly, quantum computing is examined in depth. The basic elements of quantum computation theory, based on the fundamental principles of quantum mechanics, are introduced. The attention is focused on the qubit description on the Bloch sphere, the fundamental quantum gates, and examples of quantum algorithms. Therefore, the differences between quantum simulators and quantum processors are analysed, including the frameworks that provide tools to interact with them. Focusing on Quantum Machine Learning, the different definitions of the technology are described. There are four distinct approaches that are differentiated by the type of data used (quantum or classical) and by the device processing them (quantum or classical). In this thesis, QML is defined as the approach that uses classical data to feed a quantum device. The two possible methods for developing QML algorithms are: 1) to translate existing classical models into the terms of quantum computing; 2) to leave the existing models of classical machine learning completely, and explore new possible ways of doing QML to take full advantage of the physical characteristics of a quantum computer. The strategy adopted is the first one, thus it is used a state-of-the-art hybrid model of Quanvolutional Neural Network (QNN), composed of both quanvolutional and classical convolutional layers. The quanvolutional layers reproduce the same concept of the classical ones: they are made of quantum filters that generate feature maps through locally transforming input data. The transformation can be performed by variational quantum circuits or random quantum circuits. The specific field where Quantum Machine Learning is applied is image classification. The considered case study is a labeled dataset with X-ray images of lungs (labels: pneumonia, normal). The images are pre-processed and cropped for being used by quantum circuits, thus some information is lost. The main aim of the thesis is to understand whether and in which ways Quantum Machine Learning could bring advantages in the mentioned classification in terms of timing, accuracy, or dataset reduction, despite the large decrease in images' resolution. Different configurations of the hybrid model (with a different number of quantum filters and different settings of convolutional layers) are analysed and tested. The current quantum devices have many limitations, thus the time is still immature to observe a significant change in perspective. Nevertheless, the obtained results are promising for the future of QML in terms of dataset and hyperparameters reduction.
In this work, we studied the use of Quantum Machine Learning (QML) algorithms for binary classification and compared their performance with classical Machine Learning (ML) methods. QML merges principles of Quantum Computing (QC) and ML, offering improved efficiency and potential quantum advantage in data-driven tasks and when solving complex problems. In binary classification, where the goal is to assign data to one of two categories, QML uses quantum algorithms to process large datasets efficiently. Quantum algorithms like Quantum Support Vector Machines (QSVM) and Quantum Neural Networks (QNN) exploit quantum parallelism and entanglement to enhance performance over classical methods. This study focuses on two common QML algorithms, Quantum Support Vector Classifier (QSVC) and QNN. We used the Qiskit software and conducted the experiments with three different datasets. Data preprocessing included dimensionality reduction using Principal Component Analysis (PCA) and standardization using scalers. The results showed that quantum algorithms demonstrated competitive performance against their classical counterparts in terms of accuracy, while QSVC performed better than QNN. These findings suggest that QML holds potential for improving computational efficiency in binary classification tasks. This opens the way for more efficient and scalable solutions in complex classification challenges and shows the complementary role of quantum computing.
Abstract Current era is witnessing rapid growth in data and fast data processing methods. In the past few decades, artificial intelligence has matured exponentially and has been applied in many areas such as medicine, transport, finance, and many more. Classical machine learning methods are resource intensive and usually training models takes time. Quantum machine learning can be a alternate solution to this problem and can be used to solve complex data problems. Quantum machine learning utilizes parallel computing capabilities of quantum computers. Quantum machine learning methods can be used for image classification, which is an important task in data science. Here, we have proposed a quantum convolutional neural network for color image classification, where we have applied a quantum convolutional and pooling layers to reduce the number of features without losing crucial information. We have used the proposed method to classify color image of the CIFAR-10 dataset. We have compared the validation accuracies and loss during training for both classical and quantum convolutional neural network. Our results show that we have achieved similar accuracy with less number of trainable parameters. We believe that this study will open new avenue for high dimensional data classification using quantum convolutional neural network in current and beyond NISQ era.
Image classification has become a fundamental task in computer vision with applications in areas such as medical imaging, agriculture, environmental monitoring, and automated surveillance. Traditional machine learning techniques have achieved reasonable performance in classification tasks; however, they often struggle when dealing with high-dimensional and complex image datasets. Deep learning models, particularly Convolutional Neural Networks (CNNs), have significantly improved image classification performance by automatically learning hierarchical feature representations. Despite these advancements, classical deep learning models may still face challenges related to computational complexity and large-scale data processing.In recent years, quantum machine learning has emerged as a promising paradigm that combines principles of quantum computing with classical machine learning techniques to enhance computational efficiency and model performance. This study proposes a hybrid quantum–classical framework for image classification that integrates a deep residual network (ResNet-50) with a Quantum Support Vector Machine (QSVM). The ResNet-50 model is employed as a feature extraction mechanism to capture high-level visual representations from image data. The extracted features are then reduced in dimensionality using Principal Component Analysis (PCA) to simplify the feature space and improve computational efficiency.The reduced feature vectors are subsequently classified using a QSVM model that utilizes quantum feature maps to encode classical data into quantum states. Various quantum feature maps are explored to evaluate their impact on classification performance. Experimental results demonstrate that the hybrid quantum–classical approach achieves higher classification accuracy compared to conventional machine learning models such as Support Vector Machines and Random Forest classifiers. The proposed framework highlights the potential of combining classical deep learning architectures with quantum machine learning algorithms to address complex image classification challenges. This hybrid approach provides an efficient and scalable solution for advanced image analysis tasks and demonstrates the growing potential of quantum computing in artificial intelligence applications.