arXiv:2610.10697quant-phOct 2026

Manuscript Offprint

arXiv:2610.10697

On linearity or non-linearity in machine learning for quantum chaotic dynamics

Francesco Perciavalle, Agostino Gallo, Francesco Plastina, Gianluigi Greco, Nicola Lo Gullo, Carlo Adornetto

Abstract

Accurately simulating chaotic quantum many-body dynamics remains a major computational challenge for classical methods, due to the rapid buildup and spatial spreading of entanglement during the evolution. This raises the question of whether machine learning can provide an effective alternative for predicting quantum dynamics. We address this question by formulating quantum dynamics as a time-series forecasting problem, using a few-qubit PXP chain, realizable with Rydberg-atom arrays, as a benchmark. By varying the initial state, the system spans dynamical regimes ranging from ergodic behavior to quantum many-body scarring, providing a controlled setting for testing forecasting models across qualitatively different dynamics. We compare two contrasting architectures: an expressive nonlinear Transformer and DLinear, a simple linear forecasting model. The Transformer accurately predicts dynamics in the more ergodic regime, but its performance progressively deteriorates as the initial state approaches the scarred limit. In contrast, DLinear remains accurate across the entire family of initial states, with its main deviations consisting of small high-frequency oscillations that have little effect on the overall prediction error. Remarkably, these results show that observables generated by complex quantum many-body dynamics can be forecast with high accuracy through a simple linear mapping from past to future observations. This reveals that the complexity of the underlying quantum evolution need not translate into an equally complex forecasting problem.

Keywords: Quantum many-body dynamics, quantum chaos, machine learning, transformer, DLinear, deep learning, artificial intelligence

1 Introduction

Simulating the dynamics of quantum many-body systems remains a fundamental computational challenge because the dimension of the Hilbert space grows exponentially with the size of the system [1, 2, 3, 4]. Exact numerical methods therefore become rapidly intractable, motivating approximate approaches that exploit the structure of physically relevant quantum states. Among these, matrix product states (MPS) provide an efficient representation of states with limited entanglement and form the basis for powerful tensor-network methods for many-body simulations [5, 6, 7, 8]. However, as nonequilibrium dynamics generates entanglement that progressively spreads across the system, an accurate MPS representation requires increasingly large computational resources. This limitation is particularly severe in quantum chaotic many-body systems, where entanglement typically grows rapidly after a generic quench and eventually approaches volume-law scaling [9, 10, 11]. Exact diagonalization is thus limited by system size, whereas tensor-network methods are ultimately limited by the accessible evolution time.

The computational limitations of conventional simulation methods have stimulated a growing interest in data-driven approaches to quantum dynamics. In particular, machine-learning (ML) methods provide a complementary route to extracting and predicting dynamical behavior directly from generated or experimentally accessible data. Here, we consider precisely this forecasting setting, where the problem can be formulated in terms of observable time series: given a finite history of observations, the goal is to predict their subsequent evolution without explicitly propagating the full many-body quantum state. In this context, a variety of ML architectures

(a)

Initial states {∣ψk⟩}k\{|\psi_k\rangle\}_{k}

Data preparation

{∣ψk(t)⟩}k\{\left|\psi_k(t)\right\rangle\}_{k} Time – evolved states

U^(t)=e−iH^PXPt\hat{U}(t) = e^{-i\hat{H}_{\mathrm{PXP}}t}

Each time – evolved states is represented by a feature vector {xk(t)}k\{\mathbf{x}_k(t)\}_k

Figure

∣ψ1⟩\left|\psi_{1}\right\rangle

∣ψ2⟩\left|\psi_{2}\right\rangle

∣ψN⟩\left|\psi_{N}\right\rangle

Figure

For each k∈[1,…,N]k \in [1, \ldots, N]

(b)

(c)

Prediction

Figure

Both on NtestN_{test} trajectories

Fig. 1 Schematic illustration of the forecasting protocol, consisting of three stages: data preparation [panel (a)], training [panel (b)], and prediction [panel (c)]. Data preparation (a): A set of NN initial quantum states, {∣ψk⟩}k=1N\{|\psi_k\rangle\}_{k=1}^N, of an LL-qubit system is prepared. Each state is evolved under the Hamiltonian H^PXP\hat{H}_{\mathrm{PXP}}, generating NN quantum trajectories, {∣ψk(t)⟩}k=1N\{|\psi_k(t)\rangle\}_{k=1}^N. At each time tt, each trajectory is represented by a feature vector xk(t)\mathbf{x}_k(t) comprising local magnetizations and connected two-point correlations, for a total of F=L(L+1)/2F = L(L + 1)/2 features. For each trajectory, the first ρ\rho time steps define the input sequence, while the subsequent τ\tau time steps constitute the target sequence. Training (b): DLinear and the Transformer are trained on a subset of Ntrain<NN_{\mathrm{train}} < N trajectories. Prediction (c): The trained models are evaluated on the remaining Ntest=N−NtrainN_{\mathrm{test}} = N - N_{\mathrm{train}} unseen trajectories to assess their forecasting performance.

have been explored, including long short-term memory (LSTM) networks, multilayer perceptrons (MLPs) and convolutional neural networks (CNNs) [12, 13, 14, 15], as well as data-driven methods based on dynamical mode decomposition [16].

A complementary perspective arises when the roles of quantum dynamics and machine learning are reversed: rather than using ML to predict quantum time evolution, quantum systems can themselves be exploited as computational resources for learning and predicting classical nonlinear and chaotic dynamics. As an example, in quantum reservoir computing the intrinsic dynamical complexity of quantum systems is harnessed for information processing and temporal prediction [17, 18, 19, 20, 21, 22]. Thus, quantum dynamics can be viewed both as a target of ML and as a resource for learning complex dynamical patterns.

This dual perspective raises a natural question: when quantum dynamics are themselves the object to be learned, how much model complexity is actually required to predict them? More specifically, to what extent does the complexity of the underlying quantum evolution translate into the complexity required to forecast its observable dynamics?

In this work, we address this question by comparing two forecasting architectures with markedly different structures: a nonlinear Transformer model [23, 24, 25], which uses self-attention to capture dependencies in sequential data, and a DLinear architecture [23, 24, 25], a simple linear model originally developed for long-horizon time-series forecasting. This comparison allows us to directly investigate whether forecasting complex quantum dynamics requires an expressive nonlinear architecture, or whether a simple linear mapping from past to future observations is sufficient to accurately predict the evolution of a quantum many-body system.

The quantum many-body system considered in this work is the paradigmatic PXP model [26, 27, 28, 29, 30, 31, 32], an effective model describing interacting Rydberg atoms in the blockade regime. Its dynamics depend strongly on the choice of initial state, allowing qualitatively different dynamical regimes to be explored within the same Hamiltonian. In particular, the model exhibits both ergodic dynamics and non-ergodic evolution associated with quantum many-body scars (QMBS), characterized by long-lived coherent revivals [29, 28, 33, 34]. By considering a family of initial states interpolating between these regimes, we can therefore assess the forecasting performance of linear and nonlinear models across different types of quantum dynamics while keeping the underlying Hamiltonian fixed.

Our results reveal a clear difference between the two forecasting approaches for this problem. DLinear provides accurate and stable predictions across the entire family of initial states considered, whereas the performance of the Transformer depends strongly on the dynamical regime, progressively deteriorating as the dynamics approach the quantum-scarred limit. The robust performance of DLinear is particularly notable given its simple linear structure, showing that, for the observable dynamics considered here, accurate forecasting can be achieved without an expressive nonlinear architecture. This finding is consistent with recent observations in classical time-series forecasting [35], where simple linear models have been shown to compete with, and in some cases outperform, more sophisticated nonlinear architectures.

Operationally, we train both predictive architectures on a family of initial states spanning dynamical regimes from chaotic thermalizing behavior to non-ergodic evolution associated with quantum many-body scars. The forecasting task is to predict the future evolution of a set of physical observables, namely local magnetizations and connected two-point correlation functions, given an initial segment of their time series. The performance of the two models is subsequently evaluated on unseen initial conditions and future time windows. We benchmark this framework on a few-qubit PXP chain, for which numerically exact time evolution can be efficiently computed to generate training and test data, enabling a controlled comparison between the two forecasting architectures. Although demonstrated here for the PXP model, the framework is not tied to a specific Hamiltonian and can be extended to other quantum many-body systems, as well as to digital quantum circuits, whenever representative time-series data are available.

References (39)