Understanding the impact of small quantum gate perturbations, which are common in quantum digital devices but absent in classical computers, is crucial for identifying potential advantages in quantum machine learning. While these perturbations are typically seen as detrimental to quantum computation, they can actually enhance performance by serving as a natural source of data augmentation. Additionally, they can often be efficiently simulated on classical hardware, enabling quantum-inspired approaches to improve classical machine learning methods. In this paper, we investigate random Bloch sphere rotations, which are fundamental SU(2) transformations, as a simple yet effective quantum-inspired data augmentation technique. Unlike conventional augmentations such as flipping, rotating, or cropping, quantum transformations lack intuitive spatial interpretations, making their application to tasks like image classification less straightforward. While common quantum augmentation methods rely on applying quantum models or trainable quanvolutional layers to classical datasets, we focus on the direct application of small-angle Bloch rotations and their effect on classical data. Using the large-scale ImageNet dataset, we demonstrate that our quantum-inspired augmentation method improves image classification performance, increasing Top-1 accuracy by 3%, Top-5 accuracy by 2.5%, and the F$_1$ score from 8% to 12% compared to standard classical augmentation methods. Finally, we examine the use of stronger unitary augmentations. Although these transformations preserve information in principle, they result in visually unrecognizable images with potential applications for privacy computations. However, we show that our augmentation approach and simple SU(2) transformations do not enhance differential privacy and discuss the implications of this limitation.
Understanding the impact of small quantum gate perturbations, which are common in quantum digital devices but absent in classical computers, is crucial for identifying potential advantages in quantum machine learning. While these perturbations are typically seen as detrimental to quantum computation, they can actually enhance performance by serving as a natural source of data augmentation. Additionally, they can often be efficiently simulated on classical hardware, enabling quantum-inspired approaches to improve classical machine learning methods. In this paper, we investigate random Bloch sphere rotations, which are fundamental SU(2) transformations, as a simple yet effective quantum-inspired data augmentation technique. Unlike conventional augmentations such as flipping, rotating, or cropping, quantum transformations lack intuitive spatial interpretations, making their application to tasks like image classification less straightforward. While common quantum augmentation methods rely on applying quantum models or trainable quanvolutional layers to classical datasets, we focus on the direct application of small-angle Bloch rotations and their effect on classical data. Using the large-scale ImageNet dataset, we demonstrate that our quantum-inspired augmentation method improves image classification performance, increasing Top-1 accuracy by 3%, Top-5 accuracy by 2.5%, and the F1 score from 8% to 12% compared to standard classical augmentation methods. Finally, we examine the use of stronger unitary augmentations. Although these transformations preserve information in principle, they result in visually unrecognizable images with potential applications for privacy computations. However, we show that our augmentation approach and simple SU(2) transformations do not enhance differential privacy and discuss the implications of this limitation.
This paper proposes a novel data augmentation technique inspired by quantum mechanics, specifically leveraging the principles of superposition and quantum random access memory (QRAM) simulation. Traditional data augmentation methods often rely on simple transformations like rotations, flips, and color jittering, which may not fully capture the inherent variability within a dataset. Our approach aims to generate more diverse and realistic augmented data by simulating a QRAM, effectively creating multiple correlated versions of training images simultaneously. The core idea is to represent each training image as a superposition of multiple states, allowing us to explore a vastly larger solution space than conventional methods. We quantify the augmentation process using metrics related to image entropy and feature space coverage. Preliminary simulations indicate that this quantum-inspired augmentation can significantly improve the robustness and generalization performance of computer vision models compared to standard augmentation techniques. Further research is planned to explore the practical implementation of this concept and its scalability.
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 computing has inspired new ways to represent and process data, offering perspectives that can also benefit classical machine learning. In this work, we investigate how quantum-inspired data representations can be integrated into classical machine learning classifiers such as Logistic Regression, Support Vector Machines, and Naive Bayes for binary classification tasks. The proposed approach utilizes a simple amplitude-based encoding that normalizes feature vectors and incorporates phase-like transformations, assisting classical models to capture complex interactions and patterns in the data similar to quantum information processing. We evaluate this approach on both synthetic and three other benchmark datasets, comparing standard and quantum-inspired data representations. The results highlights that the quantum-inspired data encoding often matches or improves classifier performance in terms of accuracy, F1-Score, and precision. Additionally, the normalized encoding provides a more structured representation of the data, which can help with interpretability and visualization. These results highlight the potential of quantum-inspired transformations as a practical and effective tool for improving classical machine learning pipelines without requirement of quantum hardware.
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.
Image classification is a crucial task in machine learning with widespread practical applications. The existing classical framework for image classification typically utilizes a global pooling operation at the end of the network to reduce computational complexity and mitigate overfitting. However, this operation often results in a significant loss of information, which can affect the performance of classification models. To overcome this limitation, we introduce a novel image classification framework that leverages variational quantum algorithms (VQAs) hybrid approaches combining quantum and classical computing paradigms within quantum machine learning. The major advantage of our framework is the elimination of the need for the global pooling operation at the end of the network. In this way, our approach preserves more discriminative features and fine-grained details in the images, which enhances classification performance. Additionally, employing VQAs enables our framework to have fewer parameters than the classical framework, even in the absence of global pooling, which makes it more advantageous in preventing overfitting. We apply our method to different state-of-the-art image classification models and demonstrate the superiority of the proposed quantum architecture over its classical counterpart through a series of state vector simulation experiments on public datasets. Our experiments show that the proposed quantum framework achieves up to a 9.21% increase in accuracy and up to a 15.79% improvement in F1 score, compared to the classical framework. Additionally, we explore the impact of shot noise on our method through shot-based simulation and find that increasing the number of measurements does not always lead to better results. Selecting an appropriate number of measurements can yield optimal results, even surpassing those obtained from state vector simulation.
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.