cs.LGSep 3, 2026
SaveA Quantum Variational Approach to Prototypical Recurrent Unit
Organizations: School of Electrical Engineering and Computer Science, University of Ottawa, Canada · School of Computer Science, Carleton University, Ottawa, Canada
Abstract
We introduce a lightweight Quantum Prototypical Recurrent Unit (QPRU) that requires significantly fewer parameters than both classical recurrent architectures, such as Long Short- Term Memory (LSTM) and Gated Recurrent Unit (GRU), and quantum variants, including Quantum LSTM (QLSTM) and Quantum GRU (QGRU). Despite its compact design, the QPRU achieves competitive forecasting performance, matching state-of-the-art baselines while offering important structural and practical advantages, including enhanced scalability and a reduced number of trainable parameters.
Figures & tables
Figure 1: Architecture of the proposed QPRU.
Figure 2: VQC exploited in QPRU.
| Model | Quantum Params | Total Params |
|---|---|---|
| QPRU | ||
| QGRU | ||
| QLSTM |
Table 1: Parameter complexity of QLSTM, QGRU, and the proposed QPRU model.
| Model | Classical | Quantum | Total |
|---|---|---|---|
| Params | Params | Params | |
| QPRU (PRU) | |||
| QGRU (GRU) | |||
| QLSTM (LSTM) |
Table 2: Parameter comparison of classical and quantum recurrent units for hidden state dimension , input feature dimension , qubits, and ansatz layers. Classical counterparts are shown in parentheses.
Figure 3: Sinusoidal Function Forecasting using QPRU . The red solid line represents the absolute error, and the dashed red line represents the training/validation split.
| Model | ) | ) | |
|---|---|---|---|
| QPRU | |||
| QGRU | |||
| QLSTM | |||
| PRU | |||
| GRU | |||
| LSTM |
Table 3: Experiment I results. Norm values are averaged over 10 independent validation runs for each model. Values are expressed in format.
Figure 4: Forecasting of AAPL closing prices. Predictions on training and validation sets are shown, with the dashed line marking the split. Validation MSE and MAE (computed on denormalized data) are and , respectively, indicating consistent performance on unseen data.
| Model | |||
|---|---|---|---|
| QPRU | |||
| QGRU | |||
| QLSTM | |||
| PRU | |||
| GRU | |||
| LSTM |
Table 4: Experiment II results. Norm values are averaged over 10 independent validation runs for each model and are computed on data normalized to the range . Values of the table are of the form mean STD.
Figure 5: Confidence intervals for stock forecasting for different models. The intervals are computed using , with , representing the half-width of the interval at a high confidence level. The intervals for all methods overlap, indicating that none of the pairwise differences is statistically significant. Within this experimental setup, our QPRU model performs on par with state-of-the-art baselines while retaining the structural and practical advantages discussed earlier.
Explore similar work
Recent advances in quantum computing and machine learning have motivated the development of quantum models for sequential data processing. In this paper, we propose a Recursive Quantum Long Short-Term Memory model, or Recursive QLSTM, which extends QLSTM through metacore-based recursive constructions. We numerically test the model under different input sequence lengths, metacore designs, and recursive rules, and identify the best-performing architecture among these variants. For this selected model, we further provide theoretical arguments explaining why its recursive structure improves temporal information propagation and enhances learning performance. Our results suggest that Recursive QLSTM offers a flexible and effective framework for quantum recurrent learning over input time series of various lengths.
Recursive Quantum Long Short-Term Memory for Stable Short-Horizon Temperature Forecasting
Quantum long short-term memory (QLSTM) models extend recurrent sequence learning with variational quantum circuits, but their optimization behavior can vary substantially across random initializations and temporal contexts. This paper evaluates a recursive QLSTM architecture against a standard QLSTM for one-step-ahead prediction of daily minimum and maximum temperature. Using daily weather observations from Toronto and identical training settings, we compare convergence, predictive accuracy, and generalization across input windows of 8, 16, and 32 days over 20 random seeds. The recursive model consistently reaches a near-optimal test loss earlier, reduces mean absolute error and root mean squared error, and exhibits a smaller generalization gap. These results indicate that recursive quantum feature transformations can improve stability and out-of-sample performance for compact hybrid quantum--classical temporal models.
Gated QKAN-FWP: Scalable Quantum-inspired Sequence Learning
Fast Weight Programmers (FWPs) encode temporal dependencies through dynamically updated parameters rather than recurrent hidden states. Quantum FWPs (QFWPs) extend this idea with variational quantum circuits (VQCs), but existing implementations rely on multi-qubit architectures that are difficult to scale on noisy intermediate-scale quantum (NISQ) devices and expensive to simulate classically. We propose gated QKAN-FWP, a fast-weight framework that integrates FWP with Quantum-inspired Kolmogorov-Arnold Network (QKAN) using single-qubit data re-uploading circuits as learnable nonlinear activation, known as DatA Re-Uploading ActivatioN (DARUAN). We further introduce a scalar-gated fast-weight update rule that stabilizes parameter evolution, supported by a theoretical analysis of its adaptive memory kernel, geometric boundedness, and parallelizable gradient paths. We evaluate the framework across time-series benchmarks, MiniGrid reinforcement learning, and highlight real-world solar cycle forecasting as our main practical result. In the long-horizon setting with 528-month input window and 132-month forecast horizon, our 12.5k-parameter model achieves lower scaled Mean Square Error (MSE), peak amplitude error, and peak timing error than a suite of classical recurrent baselines with up to 13x more parameters, including Long Short-Term Memory (LSTM) networks (25.9k-89.1k parameters), WaveNet-LSTM (167k), Vanilla recurrent neural network (11.5k), and a Modified Echo State Network (132k). To validate NISQ compatibility, we further deploy the trained fast programmer on IonQ and IBM Quantum processors, recovering forecasting accuracy within 0.1% relative MSE of the noiseless simulator at 1024 shots. These results position gated QKAN-FWP as a scalable, parameter-efficient, and NISQ-compatible approach to quantum-inspired sequence modeling.