Abstract
Quantum Long Short-Term Memory (QLSTM) networks offer a hybrid approach for sequence learning, yet their performance is often limited by the manual design of Variational Quantum Circuits (VQCs). This paper presents DiffQAS-QLSTM, a framework that utilizes Differentiable Architecture Search (DiffQAS) to automatically optimize quantum circuit structures. By relaxing discrete architectural choices into a continuous search space, the proposed method achieves superior accuracy on complex time-series benchmarks compared to expert-designed baselines.
Introduction
Sequence learning tasks, such as financial forecasting and weather prediction, benefit from the temporal modeling capabilities of LSTMs. Quantum versions (QLSTMs) replace classical layers with VQCs to leverage potential quantum advantages. However, designing these circuits typically requires extensive domain expertise and significant trial-and-error. The authors address this bottleneck by automating the VQC design process, making Quantum Machine Learning (QML) more accessible and effective for non-experts.
Methods
The core innovation is the integration of DiffQAS into the QLSTM architecture. Instead of a single fixed circuit, the model employs a "super-circuit" composed of various candidate sub-circuits involving different combinations of Hadamard, Rotation, and Entangling gates.
Following the Differentiable Architecture Search (DARTS) framework, each candidate circuit is assigned a continuous "structural weight." This allows the architecture to be optimized alongside gate parameters using standard gradient descent. During training, the model simultaneously updates the rotation gate angles and the architectural weights to identify the most effective circuit configuration for a specific task.
The authors explored two main configurations: Shared, where parameters are common across candidates, and NonShared, where each candidate maintains unique parameters. The NonShared approach generally yielded better results, suggesting that optimal quantum parameters are highly dependent on the specific circuit structure.
Experimental Evaluation
The framework was tested on five benchmark time-series tasks with varying complexity:
- Bessel Function ($J_2$): A smooth, oscillatory mathematical function.
- Damped Simple Harmonic Motion (SHM): A physical system simulation involving energy loss.
- Delayed Quantum Control: A task involving feedback loops and temporal delays.
- NARMA 5 & 10: Nonlinear Auto-Regressive Moving Average benchmarks known for difficult high-order dependencies.
Key Results and Insights
- Superior Accuracy: On the Damped SHM task, DiffQAS-QLSTM (NonShared) achieved a Mean Squared Error (MSE) of 0.000019, significantly outperforming the best manual baseline (0.000601).
- Stability in Complexity: The model maintained stable predictions on the challenging NARMA 10 task, where manual designs often failed to capture intricate temporal correlations.
- Automation Beats Intuition: Automatically searched architectures consistently outperformed six different "expert-designed" baseline circuits across all tasks.
- The Importance of Training: Experiments with fixed random gate parameters (Reservoir mode) showed poor performance, indicating that finding the right "shape" of a circuit must be paired with adaptive gate training.
Conclusion and Future Work
DiffQAS-QLSTM demonstrates that automated architecture search can surpass human intuition in designing quantum circuits for sequence learning. While currently validated through numerical simulation, the framework avoids the combinatorial explosion of discrete search methods, making it a scalable path forward for QML. Future work will explore the impact of real-world quantum noise on the search process and extend the framework to domains like Natural Language Processing (NLP) and Reinforcement Learning.
Summary updated