QARIMA: A Quantum Approach To Classical Time Series Analysis
Organizations: Centre for Quantum Software and Information, University of Technology Sydney, Sydney, NSW 2007, Australia · Bikash’s Quantum (OPC) Pvt. Ltd., Mohanpur, West Bengal 741246, India · Universit`a degli Studi di Cagliari, Cagliari 09123, Italy · Independent Researcher, Dubai 9262, United Arab Emirates ·
Abstract
We present QARIMA, a quantum state-similarity-based reconstruction of the classical ARIMA modelling pipeline. Rather than using a quantum circuit as a standalone forecaster, QARIMA preserves ARIMA's interpretable forecasting structure while reformulating its core building blocks through analogous quantum-compatible modules. The framework integrates quantum differencing assessment, QACF/QPACF lag discovery, compact-swap-test state projection, swap-test/VQC-based AR and MA coefficient estimation, and weak-lag refinement within a single ARIMA forecasting workflow. QACF and QPACF serve the functional roles of ACF and PACF for MA and AR lag discovery, but construct lag relevance through quantum measurement geometry rather than direct classical correlation. Given screened candidate orders , AR and MA coefficients are estimated through state-alignment losses incorporating cosine alignment, entropy regularization, phase correction, and norm control. We evaluate QARIMA across environmental, climatic, industrial, and weather time-series datasets using rolling-origin out-of-sample testing against automated classical ARIMA baselines, with performance assessed through MSE, MAPE, and Diebold--Mariano tests. The results show that quantum state-similarity modules can produce competitive and, in several cases, improved forecasting behaviour while preserving ARIMA's transparency, modularity, and interpretability. QARIMA therefore establishes a distinct pathway for quantum-enhanced statistical forecasting: its modules remain functionally analogous to classical ARIMA subroutines, but are not algebraic replicas; they serve the same modelling roles through state overlap, projection, and measurement-driven parameter estimation.
Figures & tables
| Component | Classical ARIMA | QARIMA |
|---|---|---|
| Dependency Discovery | ACF/PACF | QACF/QPACF |
| AR Estimation | OLS/MLE | Swap-Test Estimation |
| Weak Lag Refinement | None | VQC-guided |
| MA Estimation | Residual-based | Swap-Test Estimation |
| Forecasting Engine | ARIMA Equation | ARIMA Equation |
| Approach | Main idea | Difference from QARIMA |
|---|---|---|
| VQC/PQC forecasting | Quantum circuits are used as direct regression or sliding-window predictors [ 6 , 7 , 8 ] . | QARIMA preserves the ARIMA forecasting equation while reformulating its internal modelling stages through quantum state-similarity modules. |
| Quantum recurrent models | Quantum circuits augment RNN/LSTM-style sequence learning [ 9 , 10 , 11 ] . | QARIMA remains statistically interpretable and does not rely on hidden-state recurrent learning. |
| Quantum reservoir computing | Quantum dynamics provide temporal memory and nonlinear readout features [ 12 , 13 , 14 ] . | QARIMA uses explicit QACF/QPACF and AR/MA estimation instead of reservoir dynamics. |
| Long-horizon and multivariate quantum forecasting | Hybrid quantum models target longer-range or multivariate forecasting applications [ 15 ] . | QARIMA focuses on a quantum-compatible reconstruction of the ARIMA pipeline. |
| Quantum forecasting benchmarks | Quantum forecasting models are compared against classical baselines under controlled validation protocols [ 16 ] . | QARIMA follows this discipline through fixed VQC configurations, rolling-origin evaluation, MSE/MAPE reporting, and Diebold-Mariano testing. |
| Symbol | Name | Description |
|---|---|---|
| Max differencing depth | Maximum number of differencing levels tested. | |
| Lag order | Number of past lags used to construct the delay matrix. | |
| Convergence threshold | Threshold for detecting stabilization of the fitted values across successive differencing levels. | |
| Patience | Number of recent differencing levels used to confirm stabilization of . | |
| Max optimizer iterations | Maximum optimizer iterations used to estimate at each fixed differencing level. | |
| Loss metric | Primary evaluation metric, such as MSE or MAE. |
| Symbol | Name | Description |
|---|---|---|
| max_lag | Maximum residual lag evaluated by QACF. | |
| shots | Number of compact swap-test measurements per lag. | |
| acf_threshold | Empirical cutoff for retaining candidate MA orders; default value . | |
| fallback q range | Bounded MA-order set used when no QACF lag passes the cutoff. | |
| QACF score | State-similarity score between aligned residual vectors at lag . | |
| candidate orders | MA-order set passed to the MA loss evaluation. |
| Symbol | Name | Description |
|---|---|---|
| max lag | Maximum lag evaluated by the QPACF screening routine. | |
| shots | Number of compact swap-test measurements used for each aligned lag pair. | |
| threshold mode | Thresholding strategy used to select candidate AR lags: static, percentile, or std. | |
| static numerator | Reference numerator for the static screening band, typically for a PACF-inspired reference band. | |
| percentile level | Percentile level used for dynamic thresholding of QPACF magnitudes. | |
| std multiplier | Multiplier applied to the standard deviation of QPACF magnitudes in std mode. |
| Symbol | Name | Description |
|---|---|---|
| shots | Number of swap test measurement shots used for cosine similarity estimation. | |
| lambda_cosine_align | Penalty weight applied to alignment difference between classical dot and swap-based cosine. | |
| lambda_entropy | Penalty weight for quantum entropy derived from swap test probability. | |
| phase_weight | Scaling factor to correct the phase discrepancy between classical and quantum cosine. | |
| noise_std | Standard deviation of added Gaussian noise to simulate quantum fluctuations. | |
| padded_dim | Size of padded vector, adjusted to nearest power-of-two for swap test register. |
| Symbol | Name | Description |
|---|---|---|
| candidate orders | QPACF-screened candidate AR orders evaluated by the VQC refinement stage. | |
| selected differencing order | Differencing order selected by quantum state-similarity differencing assessment. | |
| AR design matrix | Lagged design matrix constructed for candidate order . | |
| aligned target vector | Target vector aligned with after differencing and lag construction. | |
| OLS initialization | Initial AR coefficient vector obtained by ordinary least squares for each candidate order . | |
| VQC parameters | Trainable VQC rotation-parameter vector used to refine AR coefficients. |
| Symbol | Name | Description |
|---|---|---|
| best_p | AR order chosen by PACF + VQC refinement. | |
| anchor_coeffs | Fixed anchor coefficients for AR( ). | |
| weak_count | Number of weak lags added to form . | |
| weak_inits | Weak-lag initialization magnitudes (from summary, excluding ). | |
| vqc_depth | Number of entangling layers in the weak-lag VQC block. | |
| max_iter | Max COBYLA iterations for minimizing . |
| Symbol | Name | Description |
|---|---|---|
| weak_lags | Ordered list of weak-lag initialization values. | |
| vqc_depth | Number of entangling layers in weak-lag VQC. | |
| max_iter | Maximum COBYLA iterations per refinement step. | |
| penalty_weights | Adaptive regularization weights based on . |
| Symbol | Name | Description |
|---|---|---|
| cosine alignment weight | Penalty for misalignment between classical dot-product projection and phase-corrected swap-test projection. | |
| entropy weight | Weight for binary entropy regularization based on the overlap-derived MA uncertainty probability . | |
| phase weight | Phase-correction factor for angular adjustment. | |
| shots | Number of measurements used in the swap-test simulation. | |
| L2 weight | regularization weight on the magnitude of . |
| Symbol | Name | Description |
|---|---|---|
| q range | Bounds of the fallback MA-order search. | |
| screened orders | Orders satisfying . | |
| fallback set | Bounded order set used when QACF selects no lag. | |
| candidate orders | Final MA-order set passed to loss evaluation. | |
| theta init | Standard Gaussian initialization used during candidate-order screening. | |
| MA loss | Quantum MA loss for candidate order . |
| Symbol | Name | Description |
|---|---|---|
| MA coefficient initialization | Initial MA coefficient vector obtained from conditional least squares, clipped to , with fallback to . | |
| VQC parameters | Trainable VQC rotation-parameter vector used to refine the MA coefficients. | |
| VQC initialization | Initial VQC parameter vector, set from the MA coefficient initialization as . | |
| MA coefficient map | MA coefficient vector obtained from VQC parameters through . | |
| coefficient projection | Elementwise projection or clipping operation enforcing the coefficient bounds . | |
| coefficient bounds | Elementwise bounds imposed on each MA coefficient for numerical stability. |
| Column | Type | Description |
|---|---|---|
| Integer | AR order selected or retained after QPACF-guided VQC refinement. | |
| Integer | Differencing order selected by the quantum state-similarity differencing assessment. | |
| Integer | MA order selected for the residual sequence associated with AR order . | |
| Vector | VQC-refined AR coefficient vector for order . | |
| Vector | VQC-refined MA coefficient vector for the selected residual MA order. | |
| Float | Standard deviation of the AR residuals before MA correction. |
| Sunspots Classical Vs Quantum OOS MSE MAPE | |||
|---|---|---|---|
| Model | N | MAPE | |
| Classical (pmdarima) (2, 0, 0) seasonal=None | 128 | 2181.589 | 1.661 |
| Quantum (pdq=(3, 1, 1)) | 128 | 2146.926 | 1.790 |
| Quantum (pdq=(10, 1, 1)) | 128 | 2160.998 | 1.534 |
| Quantum (pdq=(7, 1, 3)) | 128 | 2174.622 | 1.629 |
| Quantum (pdq=(4, 1, 1)) | 128 | 2179.405 | 1.705 |
| CO2 Classical Vs Quantum OOS | |||
|---|---|---|---|
| Model | N | MSE | MAPE |
| Classical (pmdarima non-seasonal) (5, 1, 0) | 120 | 78.37204 | 0.022805 |
| Quantum (pdq=(10, 1, 1)) | 120 | 10.02575 | 0.007472 |
| Quantum (pdq=(9, 1, 1)) | 120 | 10.17655 | 0.007496 |
| Quantum (pdq=(8, 1, 1)) | 120 | 10.45898 | 0.007573 |
| Quantum (pdq=(3, 1, 1)) | 120 | 79.3785 | 0.022943 |
| Model | N | MSE | MAPE |
|---|---|---|---|
| Classical (pmdarima non-seasonal) (0, 1, 1) | 8 | 1491.762063 | 0.080529 |
| Quantum (pdq=(7, 1, 1)) | 8 | 59.792337 | 0.016178 |
| Quantum (pdq=(10, 1, 1)) | 8 | 76.190098 | 0.017387 |
| Quantum (pdq=(9, 1, 1)) | 8 | 84.130823 | 0.017418 |
| Quantum (pdq=(6, 1, 1)) | 8 | 95.932282 | 0.018874 |
| Quantum (pdq=(3, 1, 3)) | 8 | 96.029641 | 0.017407 |
| Model | N | MSE | MAPE |
|---|---|---|---|
| Classical (pmdarima non-seasonal) (6, 1, 0) | 55 | 528229.5064 | 0.105291 |
| Quantum (pdq=(9, 1, 1)) | 55 | 533331.3927 | 0.104924 |
| Quantum (pdq=(6, 1, 1)) | 55 | 530506.1527 | 0.105351 |
| Quantum (pdq=(8, 1, 1)) | 55 | 538097.7794 | 0.105399 |
| Quantum (pdq=(5, 1, 1)) | 55 | 544440.1589 | 0.107432 |
| Quantum (pdq=(10, 1, 1)) | 55 | 555406.3154 | 0.107201 |
| Model | N | MSE | MAPE |
|---|---|---|---|
| Classical (pmdarima non-seasonal) (2, 0, 1) | 336 | 11.435905 | 0.127427 |
| Quantum (pdq=(3, 1, 1)) | 336 | 11.356242 | 0.126633 |
| Quantum (pdq=(4, 1, 1)) | 336 | 11.393498 | 0.127034 |
| Quantum (pdq=(5, 1, 1)) | 336 | 11.412022 | 0.127216 |
| Quantum (pdq=(6, 1, 1)) | 336 | 11.423452 | 0.127318 |
| Quantum (pdq=(9, 1, 1)) | 336 | 11.702693 | 0.129946 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Sunspots Classical VS Quantum DM Stats MSE | |||||||
|---|---|---|---|---|---|---|---|
| Quantum (pdq) | blocks_used | loss | DM_stat | p_value | classical_mean_loss | quantum_mean_loss | delta_mean_loss |
| (10, 1, 1) | 10 | MSE | 4.941708 | 0.0000007744 | 2411.531786 | 1563.023210 | 848.508576 |
| (9, 1, 3) | 10 | MSE | 4.831355 | 0.0000013561 | 2411.531786 | 1608.609316 | 802.922470 |
| (8, 1, 3) | 10 | MSE | 4.812065 | 0.0000014938 | 2411.531786 | 1613.363812 | 798.167975 |
| (6, 1, 3) | 10 | MSE | 4.680626 | 0.0000028600 | 2411.531786 | 1603.130658 | 808.401129 |
| (7, 1, 3) | 10 | MSE | 4.608440 | 0.0000040570 | 2411.531786 | 1629.559531 | 781.972255 |
| Sunspots Classical VS Quantum DM Stats MAE | |||||||
|---|---|---|---|---|---|---|---|
| Quantum pdq | blocks_used | loss | DM_stat | p_value | classical_mean_loss | quantum_mean_loss | delta_mean_loss |
| (10, 1, 1) | 10 | MAE | 4.908669 | 0.0000009170 | 35.734117 | 28.387620 | 7.346497 |
| (8, 1, 3) | 10 | MAE | 4.609235 | 0.0000040415 | 35.734117 | 29.106819 | 6.627298 |
| (9, 1, 3) | 10 | MAE | 4.602818 | 0.0000041681 | 35.734117 | 29.066595 | 6.667522 |
| (6, 1, 3) | 10 | MAE | 4.539380 | 0.0000056420 | 35.734117 | 28.866935 | 6.867182 |
| (7, 1, 3) | 10 | MAE | 4.324537 | 0.0000152853 | 35.734117 | 29.306929 | 6.427188 |
| Woolyarn Classical VS Quantum DM Stats MSE | |||||||
|---|---|---|---|---|---|---|---|
| Quantum pdq | blocks_used | loss | DM_stat | p_value | classical_mean_loss | quantum_mean_loss | delta_mean_loss |
| (2, 1, 1) | 1 | MSE | -7.968394 | 0.0000000000 | 934889.823 | 1136324 | -201434.0761 |
| (1, 1, 1) | 1 | MSE | -7.952058 | 0.0000000000 | 934889.823 | 1185477 | -250586.7362 |
| (3, 1, 1) | 1 | MSE | -7.245462 | 0.0000000000 | 934889.823 | 1131699 | -196809.3958 |
| (4, 1, 1) | 1 | MSE | -6.427643 | 0.0000000001 | 934889.823 | 1042081 | -107190.8507 |
| (7, 1, 1) | 1 | MSE | -4.500098 | 0.0000067922 | 934889.823 | 1343679 | -408789.1725 |
| Woolyarn Classical VS Quantum DM Stats MAE | |||||||
|---|---|---|---|---|---|---|---|
| Quantum pdq | blocks_used | loss | DM_stat | p_value | classical_mean_loss | quantum_mean_loss | delta_mean_loss |
| (3, 1, 1) | 1 | MAE | -7.36933 | 0.0000000000 | 826.718879 | 904.906818 | -78.187938 |
| (4, 1, 1) | 1 | MAE | -7.148529 | 0.0000000000 | 826.718879 | 865.442915 | -38.724036 |
| (2, 1, 1) | 1 | MAE | -6.434141 | 0.0000000001 | 826.718879 | 902.821988 | -76.103109 |
| (1, 1, 1) | 1 | MAE | -5.220583 | 0.0000001784 | 826.718879 | 926.307162 | -99.588282 |
| (7, 1, 1) | 1 | MAE | -4.272585 | 0.0000193220 | 826.718879 | 994.530279 | -167.811399 |
| CO 2 Classical vs Quantum - DM Stats (MSE) | |||||||
|---|---|---|---|---|---|---|---|
| Quantum (pdq) | blocks_used | loss | DM_stat | p_value | classical_mean_loss | quantum_mean_loss | delta_mean_loss |
| (8, 1, 1) | 174 | MSE | 8.681193 | 0.00E+00 | 9.080382 | 3.599858 | 5.480524 |
| (9, 1, 1) | 172 | MSE | 8.991140 | 0.00E+00 | 9.099370 | 3.282792 | 5.816578 |
| (10, 1, 1) | 174 | MSE | 9.194297 | 0.00E+00 | 9.080382 | 3.192490 | 5.887893 |
| (5, 1, 1) | 174 | MSE | -6.729980 | 1.70E-11 | 9.080382 | 9.236257 | -0.155875 |
| (6, 1, 1) | 174 | MSE | -6.673577 | 2.50E-11 | 9.080382 | 9.247513 | -0.167131 |
| CO 2 Classical VS Quantum DM Stats MAE | |||||||
|---|---|---|---|---|---|---|---|
| Quantum pdq | blocks_used | loss | DM_stat | p_value | classical_mean_loss | quantum_mean_loss | delta_mean_loss |
| (8, 1, 1) | 174 | MAE | 9.252065 | 0.00E+00 | 2.315727 | 1.406047 | 0.909681 |
| (9, 1, 1) | 172 | MAE | 9.561353 | 0.00E+00 | 2.314338 | 1.348458 | 0.965881 |
| (10, 1, 1) | 174 | MAE | 9.857719 | 0.00E+00 | 2.315727 | 1.324859 | 0.990868 |
| (3, 1, 1) | 174 | MAE | -5.639472 | 1.71E-08 | 2.315727 | 2.338754 | -0.023027 |
| (7, 1, 1) | 174 | MAE | 5.486284 | 4.10E-08 | 2.315727 | 1.887741 | 0.427986 |
| AusBeer Classical VS Quantum DM Stats MSE | |||||||
|---|---|---|---|---|---|---|---|
| Quantum pdq | blocks_used | loss | DM_stat | p_value | classical_mean_loss | quantum_mean_loss | delta_mean_loss |
| (1, 1, 6) | 84 | MSE | 11.878028 | 0.00E+00 | 2559.328583 | 1296.194617 | 1263.133966 |
| (2, 1, 6) | 84 | MSE | 15.353045 | 0.00E+00 | 2559.328583 | 564.606641 | 1994.721942 |
| (7, 1, 1) | 84 | MSE | 15.626542 | 0.00E+00 | 2559.328583 | 388.120011 | 2171.208572 |
| (6, 1, 1) | 84 | MSE | 15.626973 | 0.00E+00 | 2559.328583 | 412.991120 | 2146.337463 |
| (5, 1, 1) | 84 | MSE | 15.708202 | 0.00E+00 | 2559.328583 | 408.258903 | 2151.069680 |
| AusBeer Classical VS Quantum DM Stats MAE | |||||||
|---|---|---|---|---|---|---|---|
| Quantum pdq | blocks_used | loss | DM_stat | p_value | classical_mean_loss | quantum_mean_loss | delta_mean_loss |
| (1, 1, 6) | 84 | MAE | 11.772301 | 0.00E+00 | 41.666725 | 29.306057 | 12.360668 |
| (2, 1, 6) | 84 | MAE | 18.632163 | 0.00E+00 | 41.666725 | 18.651992 | 23.014733 |
| (3, 1, 3) | 84 | MAE | 19.375578 | 0.00E+00 | 41.666725 | 16.011428 | 25.655297 |
| (6, 1, 1) | 84 | MAE | 19.859260 | 0.00E+00 | 41.666725 | 16.104594 | 25.562131 |
| (7, 1, 1) | 84 | MAE | 20.302789 | 0.00E+00 | 41.666725 | 15.588372 | 26.078353 |
| Sydney 2024 Summer Temp Classical VS Quantum DM Stats MSE | |||||||
|---|---|---|---|---|---|---|---|
| Quantum pdq | blocks_used | loss | DM_stat | p_value | classical_mean_loss | quantum_mean_loss | delta_mean_loss |
| (4, 1, 1) | 160 | MSE | -3.41981 | 6.27E-04 | 8.1677 | 9.023377 | -0.855678 |
| (3, 1, 1) | 161 | MSE | -2.943498 | 3.25E-03 | 8.177383 | 19.809067 | -11.631684 |
| (5, 1, 1) | 161 | MSE | -2.456801 | 1.40E-02 | 8.177383 | 8.713587 | -0.536204 |
| (6, 1, 1) | 161 | MSE | -1.544826 | 1.22E-01 | 8.177383 | 8.668534 | -0.491151 |
| (10, 1, 1) | 155 | MSE | 0.610649 | 5.41E-01 | 8.230546 | 7.906464 | 0.324082 |
| Sydney 2024 Summer Classical VS Quantum DM Stats MAE | |||||||
|---|---|---|---|---|---|---|---|
| Quantum pdq | blocks_used | loss | DM_stat | p_value | classical_mean_loss | quantum_mean_loss | delta_mean_loss |
| (3, 1, 1) | 161 | MAE | -4.038151 | 5.40E-05 | 2.183719 | 2.875055 | -0.691336 |
| (4, 1, 1) | 160 | MAE | -2.975823 | 2.92E-03 | 2.180798 | 2.280019 | -0.099221 |
| (5, 1, 1) | 161 | MAE | -1.775833 | 7.58E-02 | 2.183719 | 2.245571 | -0.061852 |
| (10, 1, 1) | 155 | MAE | 1.205682 | 2.28E-01 | 2.193426 | 2.106318 | 0.087108 |
| (6, 1, 1) | 161 | MAE | -1.158140 | 2.47E-01 | 2.183719 | 2.237213 | -0.053494 |
Time Series Forecasting
Time series forecasting predicts future values from ordered observations using statistical, neural, and probabilistic models to support decisions under uncertainty.
See all 858 papers