2026 Volume 35 Issue 2
Article Contents

Sheng-Chen Bai, Shi-Ju Ran. Machine learning of chaotic characteristics in classical nonlinear dynamics using variational quantum circuit[J]. Chinese Physics B, 2026, 35(2): 020303. doi: 10.1088/1674-1056/adeb5b
Citation: Sheng-Chen Bai, Shi-Ju Ran. Machine learning of chaotic characteristics in classical nonlinear dynamics using variational quantum circuit[J]. Chinese Physics B, 2026, 35(2): 020303. doi: 10.1088/1674-1056/adeb5b

Machine learning of chaotic characteristics in classical nonlinear dynamics using variational quantum circuit

  • Received Date: 15/04/2025
    Accepted Date: 12/06/2025
    Available Online: 01/02/2026
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Figures(4)

Article Metrics

Article views(215) PDF downloads(0) Cited by(0)

Access History

Machine learning of chaotic characteristics in classical nonlinear dynamics using variational quantum circuit

Abstract: Replicating the chaotic characteristics inherent in nonlinear dynamical systems via machine learning (ML) is a key challenge in this rapidly advancing interdisciplinary field. In this work, we explore the potential of variational quantum circuits (VQC) for learning the stochastic properties of classical nonlinear dynamical systems. Specifically, we focus on the one- and two-dimensional logistic maps, which, while simple, remain under-explored in the context of learning dynamical characteristics. Our findings reveal that, even for such simple dynamical systems, accurately replicating long-term characteristics is hindered by a pronounced sensitivity to overfitting. While increasing the parameter complexity of the ML model typically enhances short-term prediction accuracy, it also leads to a degradation in the model’s ability to replicate long-term characteristics, primarily due to the detrimental effects of overfitting on generalization power. By comparing the VQC with two widely recognized classical ML techniques, which are long short-term memory (LSTM) networks for time-series processing and reservoir computing, we demonstrate that VQC outperforms these methods in terms of replicating long-term characteristics. Our results suggest that for the ML of dynamics, it is demanded to develop more compact and efficient models (such as VQC) rather than more complicated and large-scale ones.

1.   Introduction
  • To what extent can a machine learning (ML) model effectively learn from the dynamical data, such as trajectories, of a classical chaotic system? A defining feature of nonlinear systems is chaos, which refers to the deterministic yet seemingly random behavior of dynamic systems.[1,2] Chaos is ubiquitous in a variety of real-world systems that exhibit strong nonlinearity, including population dynamics[3] and atmospheric phenomena.[4] Chaotic systems are characterized by several unique properties, such as extreme sensitivity to initial conditions and perturbations.[1,2] These characteristics render long-term time series prediction (TSP) exceedingly challenging, as even small uncertainties can lead to significantly divergent outcomes over time.

    Machine learning (ML) has proven to be a powerful approach for TSP. Notably, neural networks, such as the well-established long short-term memory (LSTM) and transformer models,[5–7] have demonstrated exceptional performance in a variety of TSP-related tasks, including weather forecasting.[8,9] ML-based approaches for TSP in chaotic systems involve two primary issues: (i) short-term prediction of the system’s states,[10–12] and (ii) long-term replication of the system’s statistical or ergodic dynamical behaviors.[13–17]

    Various methods have been proposed targeting at the second issue. One example is the reservoir computing with neural networks. The idea is to freeze most of the variational parameters and only train a small subset (e.g., those of the output neural layer) in order to suppress overfitting and improve computational efficiency.[18–20]

    Another challenge in the ML of nonlinear dynamics is the fact that the stochastic properties often vary with the dynamical parameter(s). A common approach is to train separate models for each distinct value of the dynamical parameter(s),[21–23] a strategy we refer to as specific learning [see Fig. 1(a)]. More recently, some studies have proposed using a single ML model to universally capture the system’s characteristics across a non-trivial range of dynamical parameters, which we here dub as universal learning.[24–26] We hypothesize that universal learning may allow the model to better learn the underlying dynamics, rather than simply learning the properties associated with specific values of the dynamical parameters.

    In this work, we propose the universal learning of nonlinear dynamical systems using variational quantum circuit (VQC),[27–29] which is trained to predict the state one-step-ahead from M latest historic states and show excellent ability on replicating the long-term chaotic characteristics. Universal leaning is efficiently realized by introducing a pre-processing quantum feature map that is tuned by the dynamical parameter(s). We particularly consider two simplest nonlinear systems, namely, one- and two-dimensional (2D) logistic maps.[3,30,31] Our results surprisingly show that even for such simple nonlinear systems, the replication of their chaotic statistics is challenging, with high sensitivity to the generalization power of the ML model.

    We further suggest the divergence in the trends of accuracies on short-term state prediction and long-term characteristics replication as a signature on the lack of generalization in the ML of nonlinear dynamics. We compare VQC with LSTM[5,6] and echo state network (ESN)[26] [Note: ESN serves as a canonical model in reservoir computing] by simulating the bifurcation diagram and Lyapunov exponents. VQC well suppresses the divergence of the two trends, and exhibits remarkable accuracy on replicating the long-term statistics. We speculate the main reason for the advantages of VQC on learning nonlinear dynamics is its block-wise (or tensor-wise) structure. Such a structure is generally known as tensor network (TN),[32–36] which has demonstrated not only remarkable efficiency in addressing various problems in quantum many-body physics,[37–39] but also significant success in tackling ML problems.[40–44] Typical application cases include quantum neural networks[45,46] and matrix product states,[36,47] which have further advanced the development of TNs in the interdisciplinary field of quantum computing and artificial intelligence.[48–50] Notably, its applications to the ML of nonlinear dynamics are for the moment sparse.[51,52]

2.   Basics on the machine learning for time series prediction
  • A dynamical system can be generally written as a map xt+1 = f(xt), with xt called the state of system at the time t. Taking the one-dimensional (1D) logistic chaotic map as an example, which is a fundamental nonlinear dynamical system [see the top-left panel of Fig. 1(a)], with wide applications in understanding chaotic phenomena and generating random numbers.[3] The map is written as

    with 0 ≤ μ ≤ 4 the dynamical parameter.

    An ML model is also essentially a map. Considering the prediction of the state one-step-ahead from the latest M historic states (called a trajectory), the ML map can be formally written as

    with W denoting all the variational parameters of the ML model. One should not confuse the parameters of the dynamical system (say the dynamical parameter μ) with the variational parameters of the ML model (say W). The time series generated by the dynamical system f is used to train the ML model, i.e., to update W. Accordingly, ML samples for training are trajectories, and the labels are the ground truth of the states one-step-ahead. Note a state in a sample is also called a feature in the language of ML.

    An ML model can be trained by minimizing the prediction error on the so-called training samples. Here, we take μ as 50 discretized values in the range of 2 < μ ≤ 4. For each value of μ, we generate 2000 samples as the training set, where each sample is obtained by iteratively implementing the dynamical map on a random initial state for (M – 1) times. The variational parameters are optimized by minimizing the root mean-square error (RMSE)

    where y∼[n] denotes the prediction by the ML model for the n-th sample, y[n] denotes the ground truth (the label of this sample), and the summation over n goes through the whole training set. The variational parameters are updated using an improved gradient-descent method AdamW.[53] AdamW modifies the update rule and adapts the learning rate (gradient step) by decoupling the weight-decay term from the gradient update, thereby suppressing over-fitting and improving generalization performance. In gradient descent, the variational parameters W are updated as W→W−η∂L∂W, where η is a small positive constant known as the gradient step or learning rate.

3.   Universal machine learning of nonlinear dynamics by variational quantum circuit
  • To replicate the stochastic characteristics of dynamical system with different values of μ by a VQC, we propose a μ-tuned trainable quantum feature map (QFM). Our idea is to map each feature (which is a scalar) to vector by a μ-tuned trainable map, say xt[n]→v[n,t]=(v1[n,t],v2[n,t],…,vd[n,t]), with xt[n] the t-th feature of the n-th sample and d = dim(v[n, t]) a preset dimension. In this way, a sample is mapped to a set of vectors. Note that both LSTM and VQC can take a set of vectors as input. In the terms of quantum physics, QFM maps one feature a d-level quantum state.

    To enhance the learning ability, the QFM can depend on not just μ but also some variational parameters that will be optimized in the training stage. Here, we introduce a (d × d × d)-dimensional tensor T as the variational parameters of QFM and define it as

    We will update T when training the ML model. The vectors ξ(xt[n];θ) and ξ(μ[n]; θ), which are both d-dimensional, are obtained by the following map that transforms a scalar to a normalized vector.[40] For a given feature (say a), the j-th elements of the resulting vector ξ(a; θ) satisfies

    The parameter θ will also be optimized (independently on μ and samples) in the training stage. Note since the training samples are obtained by taking the dynamical parameter μ to be different values, one should take μ[n] in Eq. (4) to be the corresponding value of μ for the n-th sample.

    The QFM can be defined flexibly. It can also be generalized to the dynamical system that contains multiple variables and dynamical parameters. We can always use Eq. (5) and map these variables (and dynamical parameters) to multiple d-dimensional vectors.

    After implementing QFM, a sample is mapped to M vectors (recall that M is the length of a sample), which will be subsequently input to the VQC. To proceed, one may construct a product state as ∏⊗m=1Mv[n,t] as the initial state of VQC. By acting the VQC on such a state following the standard evolution process,[28,46] the prediction can be calculated with the final state. See more details about the QFM and the evolution by VQC in the supplemental material.[54]

4.   Numerical results and discussion
  • Figure 2 demonstrates the ability of LSTM and VQC on the prediction of the states with different values of μ. In panel (a), we show the bifurcation diagrams obtained by VQC and LSTM, which are consistent with the one given by the logistic map (see the inset). Each data point in the diagrams is obtained by iterating the map (the logistic map or those of the ML models) for more than 200 times (which is sufficiently large), starting from a random state that does not appear in the training set. We take 500 such random states for each value of μ to generate the testing set. Since these samples are not used to train the ML model, the testing set reveal the so-called generalization ability, which refers to the power of the ML model on dealing with the unlearned samples.

    The dense of the data points is indicated by the darkness of the colors. The similarity between two bifurcation diagrams can be characterized by the peak signal-to-noise ratios (PSNR) rP, which is widely used in the field of computer vision to characterize the similarity between two images.[55] We have rP = 43.58 and 43.40 by comparing the ground-truth diagram by logistic map with the ones by LSTM and VQC, respectively. Such a consistency between the bifurcation diagrams does not require to accurately predict the states, but requires the validity of accurately replicating the distribution of the states after long-term evolutions.

    In Fig. 2(b), we show the relative error εR=1N∑n=1N|(y∼[n]−y[n])/y[n]| by VQC versus the discrete time t for different values of μ. Note the ML models are always trained to predict the state one-step-ahead from M historic states, and thus the training process just tries to minimize the error on the short-time predictions. The summation in εR is over the testing test. Different values of μ are taken so that the system is in the converged (μ = 2.2), bifurcation (μ = 3.2), quadrifurcation (μ = 3.4), and chaotic (μ = 3.92) regions. The values of Lyapunov exponent (LE)[56,57] are given in the legend, which is calculated as

    In our numerical simulations, we take T > 200, which is sufficiently large.

    For the state prediction in the converged and bifurcation regions (with negative LE), VQC can well predict the system’s state even after a long-time evolution, with the relative error εR ∼ O(10−3). When the system is in a chaotic region (with positive LE), previous work suggests that the state prediction is valid in a short duration characterized usually by the Lyapunov time TLE ≡ λ−1.[58] Our results reveal an exponential scaling law, where εR grows exponentially with t before it converges to O(1) as

    The table in Fig. 2(b) shows the exponential index for 3.57 < μ < 4 to be about η ≈ 0.4 + O(10−1). In such a range of μ, the logistic map exhibits complex dynamical behavior characterized by the coexistence of periodic orbits and aperiodic trajectories that manifest chaotic dynamics.[59]

    The above results demonstrate the ability of the ML models on dynamical characteristics replication rather than state prediction. This is consistent with the previous works, where ML models possess certain ability on reproducing the bifurcation diagrams.[60] Below, we further characterize quantitatively the ability on replicating the characteristics by comparing the LE, as shown in Fig. 3(a). The LE of the ML models is obtained by replacing the differential term in Eq. (6) by dF(xt–M+1, …, x; W)/dx at x = xt.

    The LE’s with varying μ given by the LSTM and VQC with the μ-tuned pre-processing (green and blue lines with symbols) are consistent with those given by the logistic map (the ground truth shown by red solid line). As a comparison, much worse consistence is reached by the standard LSTM without the μ-tuned pre-processing (black dash–dot line). This is a demonstration of the improvement brought by our μ-tuned pre-processing. The two horizontal stripes indicate whether the μ-tuned LSTM and VQC give the LE with correct (green) or incorrect (red) sign. Generally, the accuracy on replicating the LE’s sign is high. The incorrect signs appeal in the chaotic region.

    Similar results are obtained for the 2D logistic map [see Fig. 3(b)], which represents a more intricate nonlinear system with richer dynamical behaviors by incorporating a linear coupling term.[30,31] The two variables [xt,xt′] are mapped as

    We take μ1 = μ2 = μ and fix β = 0.1 for simplicity. Two LE’s are defined. Obviously, replicating the LE’s of the 2D logistic map is much more challenging than the 1D case. Consequently, the LSTM without the μ-tuned pre-processing becomes almost invalid. With the μ-tuned pre-processing, VQC achieves higher accuracy than LSTM.

    Normally, a valid way to improve the performance of an ML model is to increase its complexity. However, such a way possibly fails in our case. For the dynamical system containing just a handful of hyper-parameters (say one parameter μ in the 1D logistic map), learning its dynamical characteristics is a big challenge. The key factor on improving the performance of an ML model on replicating the long-term characteristics should not be its parameter complexity. First of all, the model cannot be too simple, or otherwise necessary priori information on the dynamics (such as its mathematical form) is required to ensure the accuracy. In other words, proper complexity is needed so that the ML model would possess certain generalization ability to universally replicate the characteristics of dynamical systems without any priori knowledge on their mathematical forms. However, if we simply increase the model complexity, over-fitting emerges instead of any guaranteed improvement on the accuracy.

    Our results support the above expectation. Firstly, increasing the parameter complexity can generally reduce the error on the short-term state prediction. See the RMSE L against the model complexity for the 1D and 2D logistic maps using LSTM, VQC, and ESN in Fig. 4. Secondly, the error on replicating long-term characteristics LLE does not decrease with the model complexity. For the LSTM, the results show obvious opposition on the trends of L and LLE while increasing the hidden dimension Dh. For ESN, it achieves the best short-term accuracy among the three (with L ∼ O(10−2)–O(10−4) that is slightly higher than those from the other two models) but worst long-term accuracy (with LLE ∼ O(1)). For VQC, its short-term accuracy is comparable to LSTM (with L ∼ O(10−3)), and remarkably, its long-term accuracy is stably maintained (which is the highest among the three models) while increasing the number of circuit layers.

    Our results suggest the advantages of VQC on learning the long-term dynamical characteristics. We speculate that such advantages should come from its compact mathematical structure, which have been investigated in some previous works in the ML-related fields, such as image generation[41,61] and model compression.[44,62] On the other hand, our work suggests that even for the simple logistic maps, learning the long-term dynamical characteristics demands the ML model to possess high generalization power. This poses a challenge on the ML of more sophisticated dynamical systems, where VQC would be a promising candidate.

5.   Summary
  • This work reveals the ability of variational quantum circuit (VQC) for the machine learning (ML) of long-term dynamical characteristics. We show that an ML model, which is trained to predict the state one-step-ahead from certain historic trajectories, possesses certain ability on replicating the long-term dynamical characteristics. However, such an ability is strongly hindered by the over-fitting issue, even for the simplest logistic maps. Specifically, increasing the model complexity generally improves the accuracy on the short-term state prediction but harms the accuracy of the long-term characteristics replication. By comparing with two widely-recognized ML models, VQC exhibits advantageous ability on replicating the long-term characteristics, possibly thanks to its compact tensor-network form that mitigates the over-fitting problem. Our work puts forward the strong remands for the ML of dynamics on developing more compact and efficient models (such as VQC) rather than more complicated and large-scale models.

    In the future, we will investigate the applicability of VQC in high-dimensional chaotic dynamics, such as Lorenz equations, fluid dynamics models, or higher-dimensional spatiotemporal chaos models.[63] Additionally, we plan to theoretically analyze VQC’s generalization capabilities, for instance, by employing quantum measures[64] to evaluate its learning capacity for chaotic dynamics. Another promising direction is integrating hybrid quantum-classical optimization strategies to enhance VQC’s training efficiency in high-dimensional settings. These studies will help uncover the advantages and limitations of quantum machine learning in complex nonlinear dynamics and provide theoretical guidance for practical applications.

Figure (4)  Reference (68)

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return