WorksPhysics and Astronomy
Quantum Recurrent Architectures for Financial Time Series Prediction
Abstract
This study evaluates quantum classical hybrid recurrent architectures for financial time-series forecasting: a Quantum Long Short-Term Memory (QLSTM) network and Quantum Reservoir Computing (QRC) with lag-based inputs. Classical lag vectors are encoded into quantum states via amplitude encoding, which compactly represents normalized observations but requires nontrivial state preparation; the QLSTM gates and the QRC reservoir are implemented with parameterized quantum circuits, while classical optimizers train the interface and readout layers. On a monthly revenue series extended to 1056 months by a Gaussian-process–hidden-Markov generator, with a fixed chronological 70/15/15 split and one-step-ahead forecasts, we compare both models against a full-size LSTM, a classical control matched in parameter budget and interface architecture, a small plain LSTM, and classical reservoir computing, over ten seeds and against persistence, seasonal-naive and SARIMA benchmark forecasts. The QLSTM, with 2,105 parameters, is statistically indistinguishable from an LSTM 126 times larger, but equally indistinguishable from the matched classical control and from a plain LSTM of the same budget, so its parameter efficiency cannot be attributed to the quantum circuits. The quantum reservoir is worse than a classical reservoir of equal feature dimension in all ten seeds and worse than SARIMA, whereas all recurrent models and both classical reservoirs improve on SARIMA by about 2% in RMSE. In a 24-month rolling-origin backtest the classical LSTMs degrade more slowly than the QLSTM. We find no evidence of a quantum accuracy or parameter-efficiency advantage in this low-dimensional setting.
Introduction
Forecasting business revenue series is difficult: the histories are short, the series combine trend, seasonality and abrupt level shifts, and simple statistical benchmarks are often competitive with machine-learning forecasters [27]. Financial series more broadly are documented to be non-stationary and heavy-tailed and to be subject to regime shifts and structural breaks [34, 9, 23]. Recurrent neural networks, and in particular Long Short-Term Memory (LSTM) networks [18], are standard tools for such data [13], but they carry large parameter counts. Reservoir computing (RC) [20] is a lightweight alternative in which a fixed random recurrent system generates nonlinear features and only a linear readout is trained. Quantum machine learning [3, 36, 35] has motivated quantum counterparts of both: the Quantum LSTM (QLSTM) [8] replaces the affine gate maps of an LSTM cell by variational quantum circuits (VQCs), and quantum reservoir computing (QRC) [15, 17, 29] uses a fixed quantum system as the reservoir. Both have been applied to financial problems [11, 12] (Orús et al. 2019).
Chen et al. [8] introduced the QLSTM and evaluated it on synthetic signals (damped oscillations, Bessel functions, and similar) against a classical LSTM, reporting faster convergence but no parameter-matched control. Several follow-up studies apply QLSTM to real series: Khan et al. [21] compare QLSTM and LSTM on solar-power forecasting; Cao et al. [5] add a linear layer to the QLSTM for carbon-price forecasting; Mahmood et al. [26] compare LSTM and QLSTM for stock-market movement; Ceschini et al. [6] study hybrid quantum–classical RNNs for time-series prediction. In each of these the classical baseline is a full-size LSTM, and the reported experiments use one or a few runs; none includes a classical model matched to the hybrid’s parameter budget and interface architecture, and none reports seasonal-naive or ARIMA-type benchmark forecasts.
On the reservoir side, Fujii and Nakajima [15] and Ghosh et al. [17] established QRC; Chen et al. [7] and Fry et al. [14] apply gate-based and noise-induced QRC to nonlinear and chaotic benchmarks; Mujal et al. [29] review QRC and quantum extreme learning machines, covering computational principles, physical implementations and applications. Financial applications include realized-volatility forecasting (Li et al., 2026) and credit-default classification on neutral-atom hardware [38]. These works compare QRC to echo-state networks or to classical classifiers, but again not with repeated seeds against forecasting benchmarks on real revenue-type data.
Finally, Bowles et al. [4] showed in a large classification benchmark that out-of-the-box classical models systematically outperform small quantum models and that removing entanglement often does not hurt; Makridakis et al. [27] showed that on real business time series, statistical benchmarks are frequently competitive with machine-learning forecasters.
Hybrid quantum recurrent models are motivated in part by the possibility of achieving useful forecasting performance with fewer trainable parameters. A comparison with a full-size classical network alone cannot determine whether performance reflects the quantum gates, the smaller parameter budget, or the model architecture. We therefore evaluate QLSTM against a full-size LSTM and cLSTM-S, a classical model matched in parameter budget and interface architecture. The QLSTM has 2,105 trainable parameters, including 48 quantum parameters, compared with 265,473 for the full-size LSTM. We also compare QRC with a classical reservoir with the same feature dimension. All models use matched data splits and training protocols and are evaluated against persistence, seasonal-naive, and SARIMA baselines.
This paper contributes the following:
A common forecasting protocol for QLSTM, QRC, LSTM and RC on a monthly revenue series extended to 1056 months by a GP–HMM generator, with a fixed chronological 70/15/15 split and one-step-ahead forecasts (§ 2.1).
Matched classical controls: cLSTM-S, identical to the QLSTM except that each 2-qubit VQC is replaced by a classical block of the same input/output dimension; LSTM-S, a plain LSTM of the same parameter budget; and a classical reservoir with the same feature dimension and readouts as the QRC.
Evaluation over 10 seeds against three baseline forecasts with MSE, RMSE, MAE, and MASE; paired Wilcoxon tests with Holm correction; a training-window ablation; a 24-month rolling-origin backtest; and wall-clock cost (§ 3).
The remainder of this paper is organized as follows. Section 2 describes the financial dataset, lag construction and preprocessing, the classical and quantum models, the benchmark forecasts and the experimental protocol. Section 3 presents and discusses the forecasting results, including the limitations of the study, and Section 4 concludes.
Materials and Methods
Financial data and protocol
Raw data
This work investigates time-series forecasting on a financial dataset. We use a single univariate monthly revenue series of one product, observed for eight years (96 months).
Synthetic data generation
A history of 96 observations is comparatively short for studying long-range forecasting behavior, so we extend it with synthetic continuations that preserve important characteristics of the raw data. Gaussian processes (GPs) are well suited for this purpose because they can represent fast changes, slower trends, and periodic behavior. However, many revenue series show a slowly varying mean together with episodes in which the values stay for some time at a lower or higher level, and a plain GP represents such behavior only imperfectly. We therefore augment the GP with a two-state hidden Markov model (HMM) on the residual process, so that synthetic samples combine smooth GP dynamics with state-dependent local level shifts.
Only the first 60 months of the series are used to fit the GP–HMM; the remaining 36 months are not used by the generator. The raw observations are transformed by clipping negative values, applying a transform, and standardizing with the mean and standard deviation of the transformed training months:
Time is rescaled from months to years via , where is the month index.
The latent smooth component of the series is modeled by an exact Gaussian process
with a constant mean and an additive kernel combining a rational quadratic component, two Matérn components and a periodic component, each wrapped in a scale kernel. The components and their hyperparameters are listed in Table 1. This follows the standard GP regression framework of Rasmussen and Williams [33] and is implemented with GPyTorch (Gardner et al., [16]).
| Component | Purpose | Initialization | Constraint / limit |
| Rational quadratic | Slow trend and medium-scale variation | , | |
| Matérn (short-term) | Short-term variability | , fixed | |
| Matérn (long-term) | Smooth medium- to long-term variation | , fixed | |
| Periodic | Seasonality | , |
Table 1. GP kernel components, initial values and parameter limits ( are length scales and is the period, both in years).
The HMM models the residual of the GP, using standard forward–backward and Baum–Welch estimation (Rabiner, [32]; Baum et al., [1]). The resulting observation model is
where is the hidden state and is the state-dependent offset.
The fitting procedure alternates between the GP and HMM components across five outer rounds. In each round, the GP is optimized for 500 gradient steps, and the HMM is then fit to the residuals for up to 50 Baum–Welch iterations. To reduce sensitivity to the initialization of the periodic kernel, the entire procedure is repeated using six different initial values for the period parameter; the final model is then selected based on the lowest negative marginal log-likelihood of the GP training data.
Synthetic data are obtained by evaluating the trained GP on an extended query grid, drawing GP sample paths, sampling HMM state trajectories from the learned Markov chain, and adding Gaussian observation noise. The samples are then mapped back to the original scale using
This procedure yields synthetic series that preserve smooth trend and seasonal structure as well as local level shifts.
Experimental dataset and split
The query grid covers 1056 months: the observation period followed by a 960-month continuation, so the resulting series contains 1056 monthly values drawn from the fitted GP–HMM (Figure 1). It is split chronologically into a training window (months 1–739, 70%), a validation window (months 740–897, 15%), and a test window (months 898–1056, 15%, corresponding to 159 months). The validation window is used only for early stopping and readout selection; the test window is used once, for reporting. All scalers and statistical baselines are fitted on the training window only. Because the validation and test windows lie entirely in the GP–HMM continuation, the reported test errors measure one-step-ahead accuracy on generator output, not on observed revenue.
Figure 1. The experimental series (1056 months, min–max scaled on the training window), coloured by the chronological 70/15/15 split into training (months 1–739), validation (740–897) and test (898–1056) windows.
Lag construction
For forecasting, we transform the sequential problem into a supervised learning task via lagged inputs. For a univariate process , each input is the lag vector and the target is the next value, . Classical and quantum models therefore learn temporal dependence from the same lag structure. The lag length must balance expressiveness and parsimony: too few lags may omit relevant information, whereas too many produce high-dimensional, potentially collinear inputs and increase the risk of overfitting.
The series is scaled with the scikit-learn MinMaxScaler ([31]). Where and are the minimum and maximum of the training window (months 1–739). The scaler is fitted on the training window only and then applied unchanged to the validation and test periods, so values in these periods may fall slightly outside .
The scaled series is converted into input–target pairs with input and target , giving 735 pairs in the training window. Lags are constructed chronologically, so future values are never used as inputs. All models receive the same lag matrix: the recurrent models read it as a length-4 sequence of scalars, and the reservoirs as one 4-dimensional input vector per step.
State preparation and amplitude encoding
Classical inputs must be encoded as quantum states [35, 24]. We use amplitude encoding [28, 2 Data] Cybernetics, 2024): for the normalized vector is prepared as
so that a -dimensional vector occupies qubits. We use exact statevector simulation for all circuits (§ 2.10), so the amplitude-encoded state is prepared ideally.
Classical LSTM
The LSTM cell at time maintains a memory cell and hidden state with forget, input, candidate and output gates (Table 2, left) (Hochreiter and Schmidhuber [18]), where is the concatenation of the input and the previous hidden state. We use a single layer with hidden size 256 and a linear output layer.
| Classical LSTM | QLSTM |
Table 2. LSTM and QLSTM gate equations.
Quantum LSTM
The QLSTM ([8, 25]) replaces each gate’s affine map with a VQC (Table 2, right; Figure 2b). A classical interface layer maps to the amplitude-encoding dimension of qubits; each of the four gate VQCs consists of layers of , , rotations on every qubit followed by a ring of CNOTs (Figure 3), and returns the two Pauli- expectations ; a second interface layer , shared by the four gates, maps the measurements to the hidden size. Each VQC has trainable angles, i.e. 48 quantum parameters in total; the interface and output layers hold the remaining 2,057 parameters (Table 3). The QLSTM is thus a hybrid model in which the quantum component is 2.3% of the parameter budget, which is precisely why a parameter-matched classical control is required. Gradients through the circuits are exact (§ 2.10).

Figure 2. Classical LSTM cell and the hybrid QLSTM cell in which each gate’s affine map is replaced by a variational quantum circuit.
| Model | Quantum | Classical | Total |
| LSTM | 0 | 265,473 | 265,473 |
| QLSTM | 48 | 2,057 | 2,105 |
| cLSTM-S (matched control) | 0 | 2,097 | 2,097 |
| LSTM-S (small LSTM) | 0 | 2,038 | 2,038 |
| RC (linear readout) | 0 | 13 | 13 |
| RC (NN readout) | 0 | 225 | 225 |
| QRC (linear readout) | 0 | 13 | 13 |
| QRC (NN readout) | 0 | 225 | 225 |
Table 3. Trainable-parameter counts.
Figure 3. The 2-qubit, 2-layer VQC used for every QLSTM gate: amplitude encoding, rotations per qubit and layer, ring CNOTs, Pauli- readout (12 trainable angles).
Parameter-matched classical control (cLSTM-S)
To attribute any parameter-efficiency result to the quantum circuits rather than to the small interface architecture, we train cLSTM-S: a model identical to the QLSTM in which each 2-qubit VQC is replaced by a classical block with the same input and output dimensions, with . The block keeps the same normalization the amplitude encoding applies and produces outputs in like a Pauli- expectation, so the only difference is the map between normalization and readout. Each block has 10 parameters, so cLSTM-S has 2,097 parameters versus 2,105 for the QLSTM; all interface layers, hidden size, optimizer, learning rate, early-stopping rule, augmentation and seeds are shared. If cLSTM-S matches the QLSTM within seed variance, the quantum components contribute no measurable benefit at this budget; if the QLSTM is better, the difference is attributable to the VQCs. As a second reference, we train LSTM-S, a plain LSTM with hidden size 21 (2,038 parameters) that has the small budget but not the QLSTM’s interface structure.
Reservoir computing
In RC, only a linear readout is trained; the recurrent reservoir is fixed after random initialization [20] (Figure 4a). We use a leaky echo-state network with tanh units,
Figure 4. Classical reservoir computing and quantum reservoir computing; in both cases only the readout is trained.
spectral radius 0.9, , input weights and biases uniform in . equals the feature dimension of the quantum reservoir below.
Quantum reservoir computing
QRC uses a fixed, randomly initialized quantum circuit as the reservoir (Figure 4b) [15, 17, 25]. Rather than zero-padding inputs to length , which biases the state and wastes Hilbert-space capacity, we apply a fixed random projection followed by a single normalization. Given the lag vector (), a bias , and the previous measurement vector [20]:
For each layer we apply random single-qubit rotations and ring entanglement,
and . The feature vector stacks , , for all qubits, , and the linear prediction is with ridge solution
We use , , , , , , . The classical RC is matched to the same feature dimension () and the same readouts. Both reservoirs are evaluated with the ridge readout (13 parameters including bias) and with a neural-network (NN) readout, a one-hidden-layer ReLU network with 16 units (225 parameters) trained with Adam (learning rate ) and early stopping on the validation slice. All reservoir hyperparameters (, , , spectral radius, ) were fixed a priori and not tuned on validation data; this is a limitation noted in § 3. The series is run once, sequentially, through the reservoir over months 1–1056 (and the input for month 1057); the readouts are fitted on the reservoir features of the training window.
Benchmark forecasts
For monthly revenue data with possible seasonality, we include three standard benchmark forecasts, also called baseline models ([19]), fitted or evaluated on the training window only and scored on the same 159 test months:
Persistence: .
Seasonal-naive: .
SARIMA: orders selected by AIC on the training window over , , , fitted with
statsmodels([37]); one-step-ahead test forecasts use the training-window parameters held fixed.
We regard a learned model as skilful only if its test RMSE is below that of the best baseline model, consistently over replications.
Experimental setup and statistical analysis
All models are implemented in Python 3 with PyTorch, NumPy, scikit-learn ([31]) and statsmodels ([37]). The 2-qubit gate circuits of the QLSTM are simulated exactly as statevectors in PyTorch, so that automatic differentiation yields exact gradients; the implementation was verified to agree with PennyLane’s default.qubit simulator ([2]) to on random inputs and parameters. The 4-qubit QRC unitary is simulated exactly in NumPy. All runs use a single CPU core, and no hardware noise is modelled.
Every model is run with 10 seeds , which control weight initialization, mini-batch order and reservoir construction, giving 10 independent runs per model. All models make one-step-ahead forecasts: the input for test month consists of the four preceding months of the series. LSTM, QLSTM, cLSTM-S and LSTM-S share the Adam optimizer, learning rate , MSE loss, shuffled mini-batches of 32 samples, at most 300 epochs, early stopping on the validation window with patience 20, and restoration of the best-validation checkpoint. Reservoir readouts are fitted as described above.
For each model we report the mean and standard deviation of the test error over the 10 replications; the baseline forecasts are deterministic. Besides MSE, RMSE and MAE we report the mean absolute scaled error (MASE), i.e. the test MAE divided by the in-sample MAE of the seasonal-naive forecast on the training window, and the number of seeds for which a model has a lower test RMSE than SARIMA. With a single series, the unit of replication is the seed. Paired comparisons use the Wilcoxon signed-rank test over the 10 seeds (models with the same seed are paired; the smallest attainable two-sided -value is 0.002); the three primary comparisons (LSTM vs. QLSTM, QLSTM vs. cLSTM-S, QRC vs. RC with linear readout), fixed before the experiments were run, are Holm-corrected. Comparisons with SARIMA use the one-sample Wilcoxon test of the per-seed RMSE difference.
Results and Discussion
In this study, we use both classical and quantum algorithms for time-series prediction. The training models are implemented in Python3 using PyTorch, scikit-learn, and an H200 NVIDIA GPU. We access Q-Alchemy via its API to encode classical data into quantum states and integrate this encoding into the PennyLane framework. We compare the performance and capabilities of QLSTM and QRC with their classical counterparts across univariate time-series prediction tasks.
Table 4 summarizes the recurrent-model comparison, and Table 7 reports paired tests. All four recurrent models reach essentially the same test error: RMSE 0.0998 ± 0.0001 for the full-size LSTM, 0.1001 ± 0.0007 for the QLSTM, 0.1000 ± 0.0003 for cLSTM-S and 0.1000 ± 0.0001 for LSTM-S (MASE 0.623–0.627). None of the paired differences is significant: LSTM versus QLSTM −0.0003 ( = 0.28, Holm-adjusted = 0.55), QLSTM versus cLSTM-S +0.00005 ( = 0.92), QLSTM versus LSTM-S +0.00003 ( = 0.49); the MASE-based tests agree. Each recurrent model is better than SARIMA in at least 9 of 10 seeds ( ≤ 0.004, Table 8), by about 0.002 RMSE or 2%. The QLSTM shows the largest seed-to-seed variability (std 0.0007). Figure 6 shows that all four models follow the movements of the series in the test window; the standard deviation of their one-step-ahead predictions is 0.093–0.096, compared with 0.132 for the actual test values. Their one-step-ahead forecasts of month 1057 lie between 0.52 and 0.55 (scaled), close to the SARIMA forecast of 0.50. The loss curves in Figure 5 show early stopping after 63–137 epochs on average (Table 11).
| Model | Params | MSE | RMSE | MAE | MASE | Seeds < SARIMA |
| LSTM | 265,473 | 0.00996 ± 0.00002 | 0.0998 ± 0.0001 | 0.0805 ± 0.0003 | 0.625 ± 0.002 | 10/10 |
| QLSTM | 2,105 | 0.01001 ± 0.00015 | 0.1001 ± 0.0007 | 0.0804 ± 0.0007 | 0.624 ± 0.005 | 9/10 |
| cLSTM-S (matched control) | 2,097 | 0.01000 ± 0.00006 | 0.1000 ± 0.0003 | 0.0802 ± 0.0005 | 0.623 ± 0.004 | 10/10 |
| LSTM-S (small LSTM) | 2,038 | 0.01001 ± 0.00003 | 0.1000 ± 0.0001 | 0.0807 ± 0.0001 | 0.627 ± 0.001 | 10/10 |
Table 4. Recurrent-model test error on the 159 test months (mean ± std over 10 seeds; models trained on months 1–739). Last column: seeds with lower test RMSE than SARIMA.

Figure 5. Training and validation loss (MSE) for LSTM, QLSTM, cLSTM-S and LSTM-S, each at the seed with median QLSTM test RMSE. The dashed line marks the epoch of the restored best-validation checkpoint, not the epoch at which training stopped.
Figure 6. Recurrent models (median-RMSE QLSTM seed), one panel per model: actual values (blue) in the training, validation and test windows, one-step-ahead test predictions (red), and the one-step-ahead forecast of month 1057 (mean and range over 10 seeds; this month has no observation and is not scored). Panel titles give the test RMSE and MASE of the plotted seed.
| A | B | A wins | (RMSE) | (MASE) | |
| LSTM | QLSTM | -0.0003 | 7/10 | 0.275 [0.551] | 0.275 |
| QLSTM | cLSTM-S | +0.0000 | 6/10 | 0.922 [0.922] | 0.625 |
| QRC-linear | RC-linear | +0.0175 | 0/10 | 0.002 [0.006] | 0.002 |
| QLSTM | LSTM-S | +0.0000 | 5/10 | 0.492 | 0.131 |
| LSTM | cLSTM-S | -0.0002 | 7/10 | 0.084 | 0.064 |
| QRC-nn | RC-nn | +0.0172 | 0/10 | 0.002 | 0.002 |
| QRC-linear | QRC-nn | +0.0006 | 2/10 | 0.160 | 0.160 |
| RC-linear | RC-nn | +0.0003 | 4/10 | 0.375 | 0.557 |
Table 7. Paired Wilcoxon signed-rank tests on test RMSE (A minus B; negative favours A). “A wins”: seeds for which A has the lower test RMSE; Wilcoxon tests over the 10 seeds. Holm-corrected -values for the three primary comparisons in brackets.
| Model | vs. SARIMA | Seeds better | (Wilcoxon, ) |
| LSTM | -0.0020 | 10/10 | 0.002 |
| QLSTM | -0.0018 | 9/10 | 0.004 |
| cLSTM-S (matched control) | -0.0018 | 10/10 | 0.002 |
| LSTM-S (small LSTM) | -0.0018 | 10/10 | 0.002 |
| RC (linear readout) | -0.0017 | 10/10 | 0.002 |
| RC (NN readout) | -0.0020 | 10/10 | 0.002 |
| QRC (linear readout) | +0.0158 | 0/10 | 0.002 |
| QRC (NN readout) | +0.0152 | 0/10 | 0.002 |
Table 8. Learned models versus SARIMA, the best benchmark (one-sample Wilcoxon test of the per-seed RMSE difference, 10 seeds).
| Model | Epochs | s / epoch | Total s |
| LSTM | 63 | 0.57 | 35.0 |
| QLSTM | 87 | 2.44 | 208.5 |
| cLSTM-S (matched control) | 83 | 0.16 | 14.1 |
| LSTM-S (small LSTM) | 137 | 0.04 | 5.0 |
| RC (linear readout) | – | – | 0.01 |
| RC (NN readout) | – | – | 0.44 |
| QRC (linear readout) | – | – | 0.11 |
| QRC (NN readout) | – | – | 0.47 |
Table 11. Mean wall-clock training cost per run (single CPU core, training window months 1–739). Simulated QLSTM time is not indicative of hardware cost.
These results show that the QLSTM matches the full-size LSTM with 126 times fewer parameters. However, cLSTM-S and LSTM-S, both with about 2,100 parameters and no quantum circuit, match it as well. The parameter efficiency of the QLSTM is therefore shared by classical models of the same size and cannot be attributed to the quantum circuits. This conclusion applies to the tested VQC ansatz and to this normalized linear-tanh control; alternative classical blocks or circuit ansätze could yield different results.
| Model | Params | MSE | RMSE | MAE | MASE | Seeds < SARIMA |
| RC (linear readout) | 13 | 10/10 | ||||
| RC (NN readout) | 225 | 10/10 | ||||
| QRC (linear readout) | 13 | 0/10 | ||||
| QRC (NN readout) | 225 | 0/10 |
Table 5. Reservoir-model test error (same conventions as Table 4); seeds control the reservoir construction.
Table 5 compares the four reservoir variants. The classical reservoir reaches the level of the recurrent models: RMSE with the ridge readout and with the NN readout, better than SARIMA in all 10 seeds (). The quantum reservoir is clearly worse: RMSE (ridge) and (NN), worse than SARIMA in all 10 seeds (). RC is better than QRC in all 10 seeds with both readouts (; Holm-adjusted for the linear readout), by 0.017 RMSE. The QRC error also varies about ten times more across reservoir seeds than the RC error, i.e. the quality of the random quantum reservoir depends strongly on its construction. The choice of readout does not matter for either reservoir ().
Because the feature dimension and the readouts are matched, this gap reflects the reservoir features themselves: the echo-state features gave lower errors than the quantum-reservoir measurement features in every seed. Reservoir size, circuit depth, input mixing, and readout regularization were fixed a priori. Validation-tuned reservoir hyperparameters, or selecting the reservoir on the validation window, are natural directions for improving the QRC and could change the size of the gap.
Table 6 reports the baseline forecasts. The AIC-selected SARIMA, of order (2, 0, 2) without a seasonal term, is the strongest baseline (RMSE 0.1018, MASE 0.630); persistence (RMSE 0.1353) and seasonal-naive (RMSE 0.1669) are clearly weaker. The SARIMA RMSE of 0.1018 is the reference against which every learned model is measured.
Tables 7 and 8 summarize the paired tests, and Figure 8 shows the distribution of the test

Figure 8. Test RMSE (scaled) of the learned models over 10 random seeds. Boxes show the median and interquartile range, points show individual seeds, and triangles mark the means. Horizontal lines show the baseline forecasts: SARIMA (0.102), persistence (0.135) and seasonal naive (0.167). (A) Models within 0.003 of SARIMA, on a zoomed y-axis. (B) All models on the full y-axis range.
| Model | MSE | RMSE | MAE | MASE |
| Persistence | 0.01830 | 0.1353 | 0.1099 | 0.854 |
| Seasonal-naive | 0.02784 | 0.1669 | 0.1331 | 1.034 |
| SARIMA | 0.01036 | 0.1018 | 0.0811 | 0.630 |
Table 6. Baseline test error on the 159 test months (months 898–1056, scaled units); the baselines are deterministic.
RMSE over seeds together with the benchmark errors. Two conclusions hold for both RMSE and MASE: the QLSTM is statistically indistinguishable from the full-size LSTM and from both classical models of equal size, and RC is better than QRC.
All four recurrent models and both classical reservoirs are therefore skilful in the sense defined in § 2.9, whereas the quantum reservoir is not. The margin over SARIMA, however, is only about 2% in RMSE. On this series most of the predictable structure is captured by a low-order linear model, and the learned models add little to it. This agrees with the general finding of
Figure 7. As Figure 6 for the four reservoir variants: training, validation and test actuals, one-step-ahead test predictions and the forecast of month 1057.
Makridakis et al. [27] for business series and with Bowles et al. [4] for small quantum models: the comparison to a well-chosen baseline is more informative than the comparison between learned models.
Table 9 repeats the experiment with models trained on the first 96 months only (validation and test windows unchanged). The longer training window lowers the error of every model. The effect is small for the LSTM, LSTM-S and RC ( RMSE) but large for the two models with the narrow 4-dimensional gate bottleneck: the QLSTM improves from to and cLSTM-S from to ( for both), and the variability across seeds drops by a factor of about 20. With 92 training samples the bottleneck models fail in some seeds; with 735 samples they reach the level of the other models.
Table 9: Training-window ablation: test RMSE (mean seed std) when models are trained on the first 96 months only (92 lag samples) versus the full training window (months 1–739, 735 lag samples); = full minus first-96; from a paired Wilcoxon test over seeds.
| Model | First 96 months | Months 1–739 | ||
| LSTM | 0.1005 0.0005 | 0.0998 0.0001 | -0.0007 | 0.002 |
| QLSTM | 0.1157 0.0148 | 0.1001 0.0007 | -0.0157 | 0.002 |
| cLSTM-S (matched control) | 0.1149 0.0147 | 0.1000 0.0003 | -0.0149 | 0.002 |
| LSTM-S (small LSTM) | 0.1006 0.0001 | 0.1000 0.0001 | -0.0005 | 0.002 |
| RC (linear readout) | 0.1025 0.0015 | 0.1001 0.0005 | -0.0025 | 0.004 |
| RC (NN readout) | 0.1005 0.0017 | 0.0998 0.0009 | -0.0007 | 0.027 |
| QRC (linear readout) | 0.1237 0.0099 | 0.1176 0.0116 | -0.0061 | 0.002 |
| QRC (NN readout) | 0.1189 0.0098 | 0.1170 0.0110 | -0.0018 | 0.084 |
Table 9.
To assess longer horizons, every trained model also produces 24-month forecasts by recursion: the one-step-ahead prediction is appended to the lag window and fed back as input, and the reservoirs are driven by their own predictions. No model is retrained for this purpose; each retrained model was verified to reproduce its logged one-step-ahead test predictions exactly. Because the months after 1056 are unobserved, accuracy is measured in a rolling-origin backtest inside the test window: from each origin (136 origins) a 24-month forecast of months is made using only data up to month , and the RMSE is computed for each horizon over all origins. SARIMA uses its native multi-step forecast with the training-window parameters, persistence repeats the last value, and seasonal-naive repeats the value 12 months earlier.
Table 10 and Figure 9 show the 24-month backtest. One month ahead, the recurrent models and RC reach an RMSE of about 0.10, SARIMA 0.104, and QRC 0.12. As the forecast gets longer, the error grows for every model. SARIMA gets worse fastest (0.176 at 24 months), while the learned models level off at about 0.13–0.14.
Table 10: Rolling-origin 24-month backtest (136 origins, months 898–1056): RMSE at horizons and over all horizons (mean std over 10 seeds). Last two columns: seeds with lower all-horizon RMSE than SARIMA and the one-sample Wilcoxon -value.
| Model | – | Seeds < SARIMA | |||||
| Persistence | 0.139 | 0.159 | 0.163 | 0.176 | 0.1652 | – | – |
| Seasonal-naive | 0.173 | 0.172 | 0.163 | 0.176 | 0.1780 | – | – |
| SARIMA | 0.104 | 0.134 | 0.166 | 0.176 | 0.1576 | – | – |
| LSTM | 0.102 | 0.122 | 0.135 | 0.130 | 0.1273 0.0014 | 10/10 | 0.002 |
| QLSTM | 0.102 | 0.123 | 0.139 | 0.139 | 0.1315 0.0027 | 10/10 | 0.002 |
| cLSTM-S (matched control) | 0.102 | 0.123 | 0.140 | 0.142 | 0.1331 0.0040 | 10/10 | 0.002 |
| LSTM-S (small LSTM) | 0.102 | 0.122 | 0.136 | 0.130 | 0.1274 0.0007 | 10/10 | 0.002 |
| RC (linear readout) | 0.102 | 0.123 | 0.140 | 0.134 | 0.1313 0.0031 | 10/10 | 0.002 |
| RC (NN readout) | 0.102 | 0.123 | 0.137 | 0.131 | 0.1285 0.0025 | 10/10 | 0.002 |
| QRC (linear readout) | 0.121 | 0.137 | 0.145 | 0.151 | 0.1500 0.0347 | 7/10 | 0.160 |
| QRC (NN readout) | 0.120 | 0.135 | 0.140 | 0.136 | 0.1374 0.0065 | 10/10 | 0.002 |
Table 10.
Figure 9. Rolling-origin backtest: RMSE as a function of the forecast horizon (mean over 10 seeds; 136 origins in the test window) for the recurrent models (A) and the reservoirs (B), with the three baseline forecasts.
Averaged over all horizons, the learned models beat SARIMA (0.1576) in all 10 seeds. The one exception is QRC with linear readout, which does so in only 7 of 10 seeds. The full-size LSTM (0.1273) and LSTM-S (0.1274) are the best. They beat QLSTM (0.1315) in all 10 seeds, whereas QLSTM and cLSTM-S perform alike (). QRC is worse than RC, and with linear readout it is also unstable.
Figure 10 shows the 24-month recursive forecasts of the unobserved months 1057–1080. The recursive forecasts converge within a few months to a smooth level and do not reproduce the month-to-month switching of the series: LSTM, LSTM-S and both RC variants stay near 0.50–0.52, close to the series mean, the QLSTM and cLSTM-S drift upward to about 0.57, the QRC forecasts settle near 0.53 with a wide seed range, and SARIMA declines slowly to 0.48. These forecasts illustrate the models’ long-horizon behavior; they cannot be scored, and the backtest above is the evidence for their accuracy.
Figure 10. 24-month recursive forecasts of months 1057–1080 (red line: mean over 10 seeds; shaded: range over seeds) after the last 96 observed months (blue), with the SARIMA forecast (dashed). These months have no observations; the panel labels give the rolling-origin backtest RMSE over –24.
Table 11 lists wall-clock training cost on one CPU core. With exact statevector simulation of four 2-qubit circuits per time step, one QLSTM epoch costs 2.44 s versus 0.57 s for the 265k-parameter LSTM and 0.16 s for cLSTM-S; the QLSTM’s smaller parameter count does not translate into lower simulated training cost, and simulated cost says nothing about the cost on quantum hardware, where each gradient component would require repeated circuit executions. The reservoirs train in under a second.
The study uses a single series, so the seed is the only unit of replication and the results do not establish behavior across series. The validation and test windows lie entirely in the GP–HMM continuation, so the reported errors measure one-step-ahead accuracy on generator output and do not establish forecasting accuracy on observed revenue; models that match the generator’s structure may be favored. The study is further limited to four lags; to exact simulation without shot noise or hardware noise; to one VQC ansatz and one classical control block; to fixed reservoir hyperparameters; and to 10 seeds. Differences of the order of RMSE, such as those among the recurrent models, lie within run-to-run variation and are not practically meaningful, whatever their nominal significance. Finally, the underlying data are proprietary, which limits external replication to the released code and result logs.
Conclusion
We compared QLSTM and QRC against a full-size LSTM, a parameter-matched classical control, a small LSTM and classical RC on a monthly revenue series extended to 1056 months by a GP–HMM generator, under a common protocol with a chronological 70/15/15 split, one-step-ahead forecasts, three baseline forecasts, ten seeds per configuration, a training-window ablation and paired statistical tests. The QLSTM, with 2,105 parameters, is statistically indistinguishable from the 265,473-parameter LSTM, but equally indistinguishable from its interface-matched classical control and from a plain LSTM of the same size. All recurrent models and the classical reservoirs improve on SARIMA by about 2% at one step, whereas the quantum reservoir is worse than both RC and SARIMA. In 24-month recursive forecasts the learned models degrade more slowly than SARIMA, and the classical LSTMs become better than the QLSTM. We find no evidence of a quantum accuracy or parameter-efficiency advantage in this low-dimensional setting. Future work will evaluate the protocol on multiple series and on public benchmarks, and extend it to multivariate inputs, larger qubit counts, alternative ansätze and classical control blocks, validation-tuned reservoirs, and shot-noise and hardware-noise models.
Data Availability Statement
The product-level revenue data analyzed in this study are proprietary and cannot be redistributed. The code and pipeline used in this study (data processing, synthetic data generation, models, statistical analysis and figure scripts) are available from the corresponding author on reasonable request. All experiments use the enumerated seeds for model initialization, mini-batch order, and reservoir construction.
Author Contributions
DM: Conceptualization, Methodology, Formal analysis, Writing the manuscript. GH: Conceptualization, Methodology of QRC, Writing (review & editing). MZ: Data exploring & extending and, Writing (review & editing). MB: Resources, Data curation, Writing (review & editing). TD: Resources, Data curation, Writing (review & editing).
Funding
This work was supported by the German Federal Ministry of Research, Technology and Space (BMFTR) within the funding program “Application oriented quantum computing” under Contract No. 13N17159.
Conflict of Interest Statement
MB and TD were employed by DATEV eG. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI Statement
The author(s) declare that Generative AI was used in the creation of this manuscript. Claude (Anthropic; model Claude Opus 5.5) was used for language editing and polishing of the text and for LaTeX formatting of the manuscript. It was not used to design the study, generate or analyze data, or produce the results. The authors reviewed and edited all output and take full responsibility for the content of this publication.
References
- [1]L. E. Baum, T. Petrie, G. Soules, and N. Weiss. A maximization technique occurring in the statistical analysis of probabilistic functions of Markov chains. The Annals of Mathematical Statistics, 41(1):164–171, 1970. doi: 10.1214/aoms/1177697196.DOI
- [2]V. Bergholm et al. PennyLane: Automatic differentiation of hybrid quantum-classical computations. arXiv preprint arXiv:1811.04968, 2018.arxiv.org/abs/1811.04968
- [3]J. Biamonte, P. Wittek, N. Pancotti, P. Rebentrost, N. Wiebe, and S. Lloyd. Quantum machine learning. Nature, 549:195–202, 2017.DOI
- [4]J. Bowles, S. Ahmed, and M. Schuld. Better than classical? The subtle art of benchmarking quantum machine learning models. arXiv preprint arXiv:2403.07059, 2024.arxiv.org/abs/2403.07059
- [5]Y. Cao, X. Zhou, X. Fei, H. Zhao, W. Liu, and J. Zhao. Linear-layer-enhanced quantum long short-term memory for carbon price forecasting. Quantum Machine Intelligence, 5(2):26, 2023.DOI
- [6]A. Ceschini, A. Rosato, and M. Panella. Hybrid quantum-classical recurrent neural networks for time series prediction. In Proceedings of the International Joint Conference on Neural Networks (IJCNN), pages 1–8, 2022.DOI
- [7]J. Chen, H. I. Nurdin, and N. Yamamoto. Temporal information processing on noisy quantum computers. Physical Review Applied, 14:024065, 2020.DOI
- [8]S. Y.-C. Chen, S. Yoo, and Y.-L. L. Fang. Quantum long short-term memory. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 8622–8626, Singapore, 2022. doi: 10.1109/ICASSP43922.2022.9747369.DOI
- [9]R. Cont. Empirical properties of asset returns: stylized facts and statistical issues. Quantitative Finance, 1(2):223–236, 2001.
- [11]M. Doosti, P. Wallden, C. B. Hamill, R. Hankache, O. T. Brown, and C. Heunen. A brief review of quantum machine learning for financial services. arXiv preprint arXiv:2407.12618, 2024.DOI
- [12]D. J. Egger et al. Quantum computing for finance: State-of-the-art and future prospects. IEEE Transactions on Quantum Engineering, 1:3101724, 2020.
- [13]T. Fischer and C. Krauss. Deep learning with long short-term memory networks for financial market predictions. European Journal of Operational Research, 270(2):654–669, 2018.DOI
- [14]D. Fry, A. Deshmukh, S. Y.-C. Chen, V. Rastunkov, and V. Markov. Optimizing quantum noise-induced reservoir computing for nonlinear and chaotic time series prediction. Scientific Reports, 13:19326, 2023.DOI
- [15]K. Fujii and K. Nakajima. Harnessing disordered-ensemble quantum dynamics for machine learning. Physical Review Applied, 8:024030, 2017.DOI
- [16]J. R. Gardner, G. Pleiss, D. Bindel, K. Q. Weinberger, and A. G. Wilson. GPyTorch: Blackbox matrix-matrix Gaussian process inference with GPU acceleration. In Advances in Neural Information Processing Systems, volume 31, 2018.arxiv.org/abs/1809.11165
- [17]S. Ghosh, A. Opala, M. Matuszewski, T. Paterek, and T. C. H. Liew. Quantum reservoir processing. npj Quantum Information, 5:35, 2019.DOI
- [18]S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural Computation, 9(8):1735–1780, 1997.
- [19]R. J. Hyndman and G. Athanasopoulos. Forecasting: Principles and Practice. OTexts, Melbourne, 3rd edition, 2021.
- [20]H. Jaeger. The “echo state” approach to analysing and training recurrent neural networks. GMD Report 148, German National Research Center for Information Technology, 2001.DOI
- [21]S. Z. Khan, N. Muzammil, S. M. H. Zaidi, A. J. Aljohani, H. Khan, and S. Ghafoor. Quantum long short-term memory (QLSTM) vs. classical LSTM in time series forecasting: A comparative study in solar power forecasting. arXiv preprint arXiv:2310.17032, 2023.DOI
- [23]T. Lux. Stylized facts and the empirical properties of financial returns. In T. G. Andersen et al., editors, Handbook of Financial Time Series, pages 11–44. Springer, Berlin, 2009.
- [24]D. Maheshwari, D. Sierra-Sosa, and B. Garcia-Zapirain. Variational quantum classifier for binary classification: Real vs synthetic dataset. IEEE Access, 10:3705–3715, 2022. doi: 10.1109/ACCESS.2021.3139323.DOI
- [25]D. Maheshwari, G. Hellstern, M. Zaefferer, M. Braun, and T. Döhler. Learning temporal patterns in financial time series: A comparative study of quantum LSTM and quantum reservoir computing. arXiv preprint arXiv:2605.02656, 2026.arxiv.org/abs/2605.02656
- [26]T. Mahmood, I. Ahmad, M. M. Z. Ansar, J. A. Darwish, and R. A. K. Sherwani. Comparative study of long short-term memory (LSTM) and quantum long short-term memory (QLSTM): Prediction of stock market movement. arXiv preprint arXiv:2409.08297, 2024.arxiv.org/abs/2409.08297
- [27]S. Makridakis, E. Spiliotis, and V. Assimakopoulos. Statistical and machine learning forecasting methods: Concerns and ways forward. PLoS ONE, 13(3):e0194889, 2018.DOI
- [28]M. Möttönen, J. J. Vartiainen, V. Bergholm, and M. M. Salomaa. Transformation of quantum states using uniformly controlled rotations. Quantum Information and Computation, 5(6):467–473, 2005.arxiv.org/abs/quant-ph/0407010
- [29]P. Mujal, R. Martínez-Peña, J. Nokkala, J. García-Beni, G. L. Giorgi, M. C. Soriano, and R. Zambrini. Opportunities in quantum reservoir computing and extreme learning machines. Advanced Quantum Technologies, 4:2100027, 2021.DOI
- [31]F. Pedregosa et al. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011.arxiv.org/abs/1201.0490
- [32]L. R. Rabiner. A tutorial on hidden Markov models and selected applications in speech recognition. Proceedings of the IEEE, 77(2):257–286, 1989. doi: 10.1109/5.18626.DOI
- [33]C. E. Rasmussen and C. K. I. Williams. Gaussian Processes for Machine Learning. MIT Press, Cambridge, MA, 2006.DOI
- [34]T. A. Schmitt, D. Chetalova, R. Schäfer, and T. Guhr. Non-stationarity in financial time series: Generic features and tail behavior. EPL, 103(5):58003, 2013.
- [35]M. Schuld and F. Petruccione. Supervised Learning with Quantum Computers. Springer, Cham, 2018.DOI
- [36]M. Schuld, I. Sinayskiy, and F. Petruccione. An introduction to quantum machine learning. Contemporary Physics, 56(2):172–185, 2015.
- [37]S. Seabold and J. Perktold. Statsmodels: Econometric and statistical modeling with Python. In Proceedings of the 9th Python in Science Conference, pages 92–96, 2010.DOI
- [38]G. Vitali et al. Quantum reservoir computing for credit card default prediction on a neutral atom platform. arXiv preprint arXiv:2510.04747, 2025.arxiv.org/abs/2510.04747






