We implement a hybrid quantum-classical model for image classification that compresses MNIST digit images into a low-dimensional feature space and then maps these features onto a 5-qubit quantum state. First, an autoencoder compresses each $28\times28$ image (784 pixels) into a 64-dimensional latent vector, preserving salient features of the digit with minimal reconstruction error. We further reduce the latent representation to 5 principal components using Principal Component Analysis (PCA), to match the 5 available qubits. These 5 features are encoded as rotation angles in a quantum circuit with 5 qubits. The quantum feature map applies single-qubit rotations ($R_y$ gates) proportional to the feature values, followed by a Hadamard gate and a cascade of entangling CNOT gates to produce a non-product entangled state. Measuring the 5-qubit state yields a 32-dimensional probability distribution over basis outcomes, which serves as a quantum-enhanced feature vector for classification. A classical neural network with a softmax output is then trained on these 32-dimensional quantum feature vectors to predict the digit class. We evaluate the hybrid model on the MNIST dataset and compare it to a purely classical baseline that uses the 64-dimensional autoencoder latent features for classification. The results show that the hybrid model can successfully classify digits, demonstrating the feasibility of integrating quantum computing in the classification pipeline, although its accuracy (about 75\% on test data) currently falls below the classical baseline (about 98\% on the same compressed data).
We implement a hybrid quantum-classical model for image classification that compresses MNIST digit images into a low-dimensional feature space and then maps these features onto a 5-qubit quantum state. First, an autoencoder compresses each 28×28 image (784 pixels) into a 64-dimensional latent vector, preserving salient features of the digit with minimal reconstruction error. We further reduce the latent representation to 5 principal components using Principal Component Analysis (PCA), to match the 5 available qubits. These 5 features are encoded as rotation angles in a quantum circuit with 5 qubits. The quantum feature map applies single-qubit rotations (Ry gates) proportional to the feature values, followed by a Hadamard gate and a cascade of entangling CNOT gates to produce a non-product entangled state. Measuring the 5-qubit state yields a 32-dimensional probability distribution over basis outcomes, which serves as a quantum-enhanced feature vector for classification. A classical neural network with a softmax output is then trained on these 32-dimensional quantum feature vectors to predict the digit class. We evaluate the hybrid model on the MNIST dataset and compare it to a purely classical baseline that uses the 64-dimensional autoencoder latent features for classification. The results show that the hybrid model can successfully classify digits, demonstrating the feasibility of integrating quantum computing in the classification pipeline, although its accuracy (about 75% on test data) currently falls below the classical baseline (about 98% on the same compressed data).
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.
This research explores the integration of quantum computing with classical machine learning to enhance data classification tasks using Quantum Neural Networks (QNN) and Parameterized Quantum Circuits (PQC). The hybrid approach leverages the advantages of both quantum and classical systems to improve the efficiency and accuracy of data processing. In this model, data is encoded into qubits using amplitude encoding, representing input vectors as amplitudes of quantum states. The QNN is initialized by placing the qubits in superposition using Hadamard gates, followed by data encoding with parameterized rotational gates that map classical data to quantum states using rotation angles. PQC plays a central role by applying layers of parameterized quantum operations to process data in the quantum space. These parameters are optimized during the training process, where a quadratic loss function minimizes the error between the predicted quantum states and the true class labels using gradient descent. Experiments conducted on the MNIST dataset show that the hybrid the hybrid quantum-classical neural network (QCNN) with PQC achieves a classification accuracy of over 95%, highlighting its potential in machine learning applications. The results demonstrate that integrating quantum computing with classical machine learning enhances performance in complex data analysis tasks due to the exponential growth of quantum state space and the parallelism of quantum systems, making hybrid models promising for computer vision and classification tasks.
Given the recent prominence of Noisy Intermediate Scale Quantum (NISQ) devices, hybrid quantum-classical neural networks have recently drawn a lot of excitement as a potential solution to improving learning efficiency. Our current paper describes a Hybrid Quantum-Classical Convolutional Neural Network (HQCNN) which is defined as a pretrained backbone of ResNet-18 and a small quantum-enhanced feature-transformation layer of Qiskit. The convolutional high-dimensional features are reduced to the classical eight-dimensional one, which in turn is encoded into a four-qubit parameterized quantum circuit. The resultant quantum expectation values are combined with the compressed features to come up with a hybridized representation of twelve dimensions, used to classify multi-class dataset. Experimental analysis of CIFAR10 data has shown that the suggested HQCNN achieves a test accuracy of 94.74% and improves class-wise precision, recall, and F1-scores than a number of existing hybrid models while using a significantly smaller number of latent features. More investigation into the quantum module indicates that it is predictable about scalability to batch, resistant to perturbations in features, and efficiently performed by evaluating circuit vectors. These results indicate that compact and expressive representations of images that can be helpful in the NISQ era can be acquired using hybrid architectures, thus providing a practical way to forward the benefits of quantum to modern deep-learning pipelines.
In order to leverage quantum computers for machine learning tasks such as image classification, careful consideration is required: NISQ-era quantum computers have limitations, which include noise, scalability, read-in and read-out times, and gate operation times. Therefore, strategies should be devised to mitigate the impact that complex datasets can have on the overall efficiency of a quantum machine learning pipeline. This may otherwise lead to excessive resource demands or increased noise. We apply a classical feature extraction method using a ResNet10-inspired convolutional autoencoder to both reduce the dimensionality of the dataset and extract abstract and meaningful features before feeding them into a quantum machine learning block. The quantum block of choice is a quantum-enhanced support vector machine (QSVM), as support vector machines typically do not require large sample sizes to identify patterns in data and have short-depth quantum circuits, which limits the impact of noise. The autoencoder is trained to extract meaningful features through image reconstruction, aiming to minimize the mean squared error across a training set. Three image datasets are used to illustrate the pipeline: HTRU-1, MNIST, and CIFAR-10. We also include a quantum-enhanced one-class support vector machine (QOCSVM) for the highly unbalanced HTRU-1 set, as well as classical machine learning results to serve as a benchmark. Finally, the HTRU-2 dataset is also included to serve as a benchmark for a dataset with well-correlated features. The autoencoder achieved near-perfect reconstruction and high classification accuracy for MNIST, while CIFAR-10 showed poorer performance due to image complexity, and HTRU-1 struggled because of dataset imbalance. This highlights the need for a balance between dimensionality reduction through classical feature extraction and prediction performance using quantum methods.
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.
Quantum computing offers the potential for superior computational capabilities, particularly for data-intensive tasks. However, the current state of quantum hardware puts heavy restrictions on input size. To address this, hybrid transfer learning solutions have been developed, merging pre-trained classical models, capable of handling extensive inputs, with variational quantum circuits. Yet, it remains unclear how much each component -- classical and quantum -- contributes to the model's results. We propose a novel hybrid architecture: instead of utilizing a pre-trained network for compression, we employ an autoencoder to derive a compressed version of the input data. This compressed data is then channeled through the encoder part of the autoencoder to the quantum component. We assess our model's classification capabilities against two state-of-the-art hybrid transfer learning architectures, two purely classical architectures and one quantum architecture. Their accuracy is compared across four datasets: Banknote Authentication, Breast Cancer Wisconsin, MNIST digits, and AudioMNIST. Our research suggests that classical components significantly influence classification in hybrid transfer learning, a contribution often mistakenly ascribed to the quantum element. The performance of our model aligns with that of a variational quantum circuit using amplitude embedding, positioning it as a feasible alternative.