In this work we present the Scaled QUantum IDentifier (SQUID), an open-source framework for exploring hybrid Quantum-Classical algorithms for classification problems. The classical infrastructure is based on PyTorch and we provide a standardized design to implement a variety of quantum models with the capability of back-propagation for efficient training. We present the structure of our framework and provide examples of using SQUID in a standard binary classification problem from the popular MNIST dataset. In particular, we highlight the implications for scalability for gradient-based optimization of quantum models on the choice of output for variational quantum models.
In this work we present the Scaled QUantum IDentifier (SQUID), an open-source framework for exploring hybrid Quantum-Classical algorithms for classification problems. The classical infrastructure is based on PyTorch and we provide a standardized design to implement a variety of quantum models with the capability of back-propagation for efficient training. We present the structure of our framework and provide examples of using SQUID in a standard binary classification problem from the popular MNIST dataset. In particular, we highlight the implications for scalability for gradient-based optimization of quantum models on the choice of output for variational quantum models.
Among notable applications, quantum machine learning (QML) is a promising task that combines quantum computing with machine learning, cited for various types of complex computational problems. This chapter briefly summarizes the frameworks, software platforms, and toolchains currently available for implementing, simulating, and executing hybrid quantum–classical learning algorithms. Major frameworks (e.g., Qiskit Machine Learning, PennyLane, TensorFlow Quantum, and the PyTorch-based toolsets) are analyzed in detail based on their architectural design, functionality, and integration capabilities. They have several key features, such as variational quantum circuits, parameterized quantum gates, automatic differentiation capabilities, and easy integration into a classical deep learning ecosystem. The chapter groups together ongoing research in different architectural paradigms, practical usability aspects, and empirical performance tests. Additionally, it explores aspects of scalability, adaptability to hardware, noise resistance, and reproducibility. The results bring to light elements of the design of trade-offs for creating robust and efficient toolchains for QML, a QML best practice, and guidance for future QML design.
We introduce DeepQuantum, an open-source, PyTorch-based software platform for quantum machine learning and photonic quantum computing. This AI-enhanced framework enables efficient design and execution of hybrid quantum-classical models and variational quantum algorithms on both CPUs and GPUs. For photonic quantum computing, DeepQuantum implements Fock, Gaussian, and Bosonic backends, catering to different simulation needs. To our knowledge, it is the first framework to realize closed-loop integration of three paradigms of quantum computing, namely quantum circuits, photonic quantum circuits, and measurement-based quantum computing, thereby enabling robust support for both specialized and universal photonic quantum algorithm design. Furthermore, DeepQuantum supports large-scale simulations based on tensor network techniques and a distributed parallel computing architecture. We demonstrate these capabilities through comprehensive benchmarks and illustrative examples. With its unique features, DeepQuantum is intended to be a powerful platform for both AI for Quantum and Quantum for AI.
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.
Machine Learning (ML) has changed the way computers work by letting them learn from data and make smart choices. However, traditional ML techniques encounter scalability and efficiency constraints as datasets get larger and computational problems become more complicated[1]. These restrictions could be circumvented by the new paradigms that quantum computing offers by using entanglement and superposition [2], [3]. The combination of the Quantum computing with the Machine Learning is called the Quantum Machine Learning(QML), offers efficiency improvements, new algorithmic opportunities, and speedups in certain linear algebraic operations. So, this review dives deeply into quantum-classical algorithms, with a particular emphasis on the approaches like quantum neural network and quantum support vector machines. We examine computational complexity, architectural design, benchmarking findings, and real-world applications (such as optimization, cryptography, and classification). We also discuss important issues including scalability, data encoding, and noise, and we suggest future paths for error prevention and scalable structures.
This paper addresses the critical limitations of existing quantum machine learning (QML) frameworks concerning scalability, specifically their inability to efficiently handle large-scale quantum datasets. We propose a novel, scalable QML framework designed to effectively process these datasets and accelerate the training and inference of quantum machine learning algorithms. The core mechanism leverages quantum parallelism, constructing a framework capable of handling increased complexity. This work represents a significant advancement by directly tackling the scalability bottleneck in QML, establishing a foundational element for future developments in the field. The framework utilizes a modular architecture incorporating optimized quantum circuits and classical processing units for data preparation, model training, and result evaluation. The key innovation lies in the dynamic partitioning of quantum computations across multiple quantum processors, coupled with sophisticated data encoding strategies to mitigate the effects of qubit decoherence and limited qubit counts. This approach allows for the parallel execution of complex quantum algorithms, drastically reducing computational overhead and enabling the training of larger and more sophisticated models. We demonstrate the potential of this framework through theoretical analysis and algorithmic design, highlighting its advantages over traditional, monolithic QML implementations.
Quantum machine learning for classical data is currently perceived to have a scalability problem due to (i) a bottleneck at the point of loading data into quantum states, (ii) the lack of clarity around good optimization strategies, and (iii) barren plateaus that occur when the model parameters are randomly initialized. In this work, we propose techniques to address all of these issues. First, we present a quantum classifier that encodes both the input and the output as binary strings which results in a model that has no restrictions on expressivity over the encoded data but requires fast classical compression of typical high-dimensional datasets to only the most predictive degrees of freedom. Second, we show that if one parameter is updated at a time, quantum models can be trained without using a classical optimizer in a way that guarantees convergence to a local minimum, something not possible for classical deep learning models. Third, we propose a parameter initialization strategy called sub-net initialization to avoid barren plateaus where smaller models, trained on more compactly encoded data with fewer qubits, are used to initialize models that utilize more qubits. Along with theoretical arguments on efficacy, we demonstrate the combined performance of these methods on subsets of the MNIST dataset for models with an all-to-all connected architecture that use up to 16 qubits in simulation. This allows us to conclude that the loss function consistently decreases as the capability of the model, measured by the number of parameters and qubits, increases, and this behavior is maintained for datasets of varying complexity. Together, these techniques offer a coherent framework for scalable quantum machine learning.