Regression and Classification with Single-Qubit Quantum Neural Networks

Leandro C. Souza, Bruno C. Guingo, Gilson Giraldi, Renato Portugal · 2024

Read Regression and Classification with Single-Qubit Quantum Neural Networks by Leandro C. Souza, Bruno C. Guingo, Gilson Giraldi, Renato Portugal (2024) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2412-09486.txt.

Introduction

Leandro C Souza, Bruno C Guingo, Gilson Giraldi, and Renato Portugal show that a single quantum bit can run a small neural network. Quantum hardware is scarce, so lean designs matter. Their 2024 paper uses one qubit, reshaped by tuned operations, plus a fresh way to load data into it. The network handles both number forecasting and class sorting. For number tasks it trains by gradient descent, the standard step-by-step method.

For sorting tasks, a new training trick finds the best fit in one step, based on polynomial fitting. That cuts training time sharply. The authors present the design as a scalable testbed for quantum learning on today's tiny machines. Results on both task types support the claim.

Catalog record

CREATORLeandro C. Souza, Bruno C. Guingo, Gilson Giraldi, Renato Portugal
YEAR2024
COLLECTIONPAPERS
FORMATTXT
FILE SIZE54 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2412-09486

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Regression and Classification with Single-Qubit Quantum Neural Networks Leandro C. Souza, Bruno C. Guingo, Gilson Giraldi, Renato Portugal Abstract The literature reflects a mutually beneficial relationship between machine learning and quantum computing, where progress in one field frequently drives improvements in the other. Motivated by the rich connection between these areas, we use a resource-efficient and scalable Single-Qubit Quantum Neural Network (SQQNN) for both regression and classification tasks using a new data uploading technique. The SQQNN leverages parameterized single-qubit unitary operators and quantum measurements to achieve efficient learning. To train the model, we use gradient descent for regression tasks. For classification, we introduce a novel training method inspired by polynomial regression, which can efficiently find a global minimizer of the transformed least-squares objective in a single step. This approach significantly accelerates training compared to iterative methods. Evaluated across various applications, the SQQNN exhibits virtually error-free and strong performance in regression and classification tasks, including Wisconsin Breast Cancer and MNIST datasets. These results demonstrate the versatility, scalability, and suitability of the SQQNN for deployment on near-term quantum devices. \sanitize@url \@AF@join E-mail: [email protected] 1 Introduction Classical machine learning, especially through artificial neural networks, has transformed numerous fields by enabling pattern recognition, prediction, and complex decision-making tasks. At the core of these networks lies the neuron, a computational unit inspired by biological neurons [ 1 ] . One of the earliest models, the perceptron [ 2 ] , acts as a binary classifier by producing an output based on a weighted sum of inputs [ 3 ] . Despite its simplicity, the perceptron laid the groundwork for more sophisticated architectures that underpin support vector machines and modern deep learning [ 4 ] . Quantum computing introduces new possibilities for machine learning by leveraging quantum mechanics to potentially surpass classical computational limits [ 5 , 6 , 7 , 8 ] . A key area of exploration is Quantum Neural Networks (QNNs), which use quantum parallelism and entanglement to process complex data efficiently. Many QNNs incorporate quantum versions of classical neurons, quantum perceptrons [ 9 , 10 , 11 , 12 ] which, unlike their classical counterparts, rely on quantum measurement-induced probabilistic behaviors to simulate non-linear activations [ 13 ] . Recent advancements have extended QNNs to specialized quantum algorithms [ 14 , 15 , 16 , 17 , 18 , 19 , 20 ] , offering frameworks for supervised and unsupervised learning [ 21 ] and sparking innovation in hardware implementations [ 22 ] . Techniques such as quantum phase estimation and amplitude amplification further enrich the capabilities of quantum perceptrons, empowering QNNs to address data structures and tasks that often challenge classical models [ 23 , 24 ] . Parameterized quantum circuits (PQCs) are central to quantum machine learning, providing flexible, tunable models that represent complex data through sequences of parameterized quantum gates [ 25 , 26 , 27 ] . Integrated into hybrid quantum-classical algorithms and trained via classical optimizers such as gradient descent, PQCs enable quantum neural networks (QNNs) to learn patterns effectively [ 28 ] . By achieving high expressivity with fewer qubits, they support efficient architectures compatible with NISQ hardware [ 25 , 29 ] . A minimal yet powerful realization of this idea is a QNN composed of single-qubit neurons with carefully chosen rotations, which can capture complex relationships while requiring minimal quantum resources. Recent studies have explored this single-qubit approach for a variety of learning tasks [ 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 ] . Early works [ 30 ] used the 1-qubit deterministic quantum computing model [ 38 ] to estimate intractable kernel functions, while Ref. [ 31 ] introduced a classifier based on single-qubit rotations and data re-uploading. This was extended in [ 32 ] to approximate any bounded complex function, with both theoretical and experimental support. Later studies [ 33 , 34 , 35 , 37 ] demonstrated the applicability of single-qubit systems to supervised, unsupervised, and reinforcement learning, showing that such models can rival classical methods while remaining resource-efficient. In this work, we propose a Single-Qubit Quantum Neural Network (SQQNN) composed of parameterized single-qubit neurons. This architecture generalizes the proposal of Ref. [ 31 ] by introducing a more flexible data re-uploading strategy capable of handling multi-dimensional inputs directly, whereas the original approach decomposed them into several three-dimensional inputs, increasing circuit depth. The SQQNN provides a compact and resource-efficient framework suitable for regression and binary classification, offering advantages such as simplified implementation, faster execution, and reduced hardware demands. Its design leverages the expressiveness of parameterized quantum measurements to simulate non-linear activation functions, making it a practical and scalable alternative to multi-qubit models for near-term quantum devices. The theoretical foundation of the SQQNN is based on general single-qubit unitary operations with adaptive input states and observables. We validate its capabilities across a variety of tasks, including logical gate learning, synthetic regressions, and real-world classification datasets such as MNIST. Two distinct training approaches are employed: gradient descent, used for logic and regression tasks, and a matrix-based method inspired by polynomial regression, which is effective for classification. The network consistently achieves strong performance with low error rates and fast training times (typically under a few seconds on a standard laptop), demonstrating its scalability and ability to learn both linear and non-linear relationships. All results were obtained using classical simulations of quantum circuits. Although the shallow depth and single-qubit nature of the circuits are favorable for near-term devices, their performance on real quantum hardware requires experimental validation. This is because single-qubit gates are among the most reliable operations on current quantum devices, exhibiting minimal decoherence and gate error compared to multi-qubit operations, which tend to suffer from significantly higher noise levels (see, for instance, [ 39 ] ). These results underscore the versatility of the SQQNN and its potential as a lightweight quantum model for diverse machine learning applications. The structure of this paper is as follows: In Sec. 2 , we introduce the single-qubit quantum neuron model and describe how quantum gates are used to encode learnable parameters. In Sec. 3 , we extend this model to define the Single-Qubit Quantum Neural Network (SQQNN), detailing its architecture, parametrization, and expressiveness. Sec. 4 presents two training strategies: gradient descent and a polynomial-based linear least squares method tailored for classification. In Sec. 5 , we evaluate the SQQNN on regression tasks, including logic gate modeling, the sinc function, and two real-world datasets. In Sec. 6 , we assess the network’s classification performance using datasets such as Wisconsin Breast Cancer and MNIST. Sec. 7 provides a comparative analysis with existing quantum and classical models, highlighting the performance of the SQQNN. In Sec. 8 , we discuss how the proposed model can be extended to multi-qubit architectures, enabling multi-class classification with quantum circuits based on standard state preparation techniques. Finally, in Sec. 9 , we draw our conclusions. 2 Single-Qubit Neuron Model A quantum neuron is a quantum-inspired adaptation of the classical neuron, designed for supervised learning tasks. Given a dataset \mathbb{D}=\left\{\left({x}_{1},y_{1}\right),\left({x}_{2},y_{2}\right),\cdots,\left({x}_{n},y_{n}\right)\right\}\subset\mathbb{R}^{p}\times[-1,1], where each input {x}_{i}\in\mathbb{R}^{p} is a feature vector and each corresponding output y_{i}\in[-1,1] is the target of the quantum neuron. Quantum computational principles are applied to predict the

Read the complete text