Quantum mechanical data assimilation (QMDA)
Forecasting full probability distributions and updating them with new observations
Kernel analog forecasting yields the expected value of an observable and the probabilities of events. Quantum mechanical data assimilation (QMDA) addresses a complementary problem: the evolution of an entire probability distribution of the future state, and its updating whenever new observations arrive (Giannakis 2019; Freeman et al. 2023).
No quantum-physical effect in the atmosphere or ocean is implied by the name. What is taken from quantum mechanics is its mathematical formalism, in which states are represented by density operators and are updated by measurements; it is applied here to classical systems by means of the data-driven Koopman operator. The method and the published example described on this page predate the present project.
What data assimilation does
Data assimilation combines forecasts with observations (Kalnay 2003) in a cycle of two steps. In the forecast step, the current estimate of the state, together with its uncertainty, is advanced in time; this gives the prior distribution at the next observation time. In the analysis step, when a new observation arrives, the prior is combined with the information in the observation by Bayes’ rule to give the posterior distribution.
In classical methods, such as the Kalman filter and its ensemble variants, these steps are carried out with a numerical model of the system. In QMDA they are carried out with operators estimated from data.
From probability densities to density matrices
In QMDA each object of classical probability theory is replaced by its counterpart in quantum mechanics:
| Classical | QMDA | |
|---|---|---|
| State of knowledge | Probability density \(p\) | Density matrix \(\rho\) (positive semidefinite, unit trace) |
| Quantity of interest | Function \(g\) | Matrix \(A_g\) of multiplication by \(g\) |
| Expected value | \(\int g\, p\, d\mu\) | \(\operatorname{tr}(\rho A_g)\) |
| Evolution in time | Transfer operator acting on \(p\) | \(\rho \mapsto U^{*} \rho\, U\) |
| Update with observations | Bayes’ rule | Quantum analog of Bayes’ rule |
All matrices are of size \(L \times L\) and are expressed in the data-driven basis \(\phi_1, \ldots, \phi_L\) used throughout the framework (see data-driven methods).
The algorithm in matrix form
From the training data, the Koopman matrix \(U\) is formed and, for each observable \(g\) to be forecast, the matrix
\[ (A_g)_{ij} = \frac{1}{N} \sum_{n=1}^{N} \phi_i(x_n)\, g_n\, \phi_j(x_n), \]
which represents multiplication by \(g\) in the basis.
In the forecast step, between observations, the density matrix is advanced by the Koopman operator and is renormalized to unit trace:
\[ \rho^{-}_{t+\Delta t} = \frac{U^{*} \rho_t\, U}{\operatorname{tr}\big(U^{*} \rho_t\, U\big)}. \]
The forecast mean of \(g\) is \(\operatorname{tr}(\rho A_g)\) and its variance is \(\operatorname{tr}(\rho A_g^2) - \operatorname{tr}(\rho A_g)^2\). The full forecast distribution is obtained from the eigendecomposition \(A_g = \sum_k a_k\, v_k v_k^{*}\): the probability assigned to the value \(a_k\) is \(v_k^{*} \rho\, v_k\), as in a quantum measurement.
In the analysis step, when an observation \(y\) arrives, the prior is updated by a quantum analog of Bayes’ rule. In the formulation of Freeman et al. (2023), the role of the likelihood is played by a matrix \(E_y\) constructed, in the same manner as \(A_g\), from the kernel similarity \(\kappa(y, y_n)\) between the new observation and each training observation:
\[ (E_y)_{ij} = \frac{1}{N} \sum_{n=1}^{N} \phi_i(x_n)\, \kappa(y, y_n)\, \phi_j(x_n), \qquad \rho^{+} = \frac{E_y^{1/2}\, \rho^{-} E_y^{1/2}}{\operatorname{tr}\big(E_y\, \rho^{-}\big)}. \]
Iteration of the two steps gives a sequential cycle of forecasting and state estimation, analogous to the forecast–analysis cycle of classical data assimilation.
Why use the quantum formalism?
The formulation has the following properties. Complete forecast distributions are produced, and not only a mean; they broaden with increasing lead time and contract when observations are assimilated. Positivity is preserved: both steps map density matrices to density matrices, and for a nonnegative observable \(g\) the matrix \(A_g\) is positive semidefinite, so the forecast mean \(\operatorname{tr}(\rho A_g)\) of a quantity such as humidity or precipitation is nonnegative. This property is not readily guaranteed in classical data assimilation schemes. The state is a matrix of fixed size \(L \times L\), independently of the number of observed variables, and each update requires only kernel evaluations and products of small matrices. All operators are estimated from data, so the method can be applied where no reliable numerical model is available. Finally, being formulated in terms of operators on a Hilbert space, the scheme is amenable to implementation on quantum computers (Giannakis et al. 2022); the present implementation runs on classical hardware.
Example: ENSO in a climate model
QMDA forecasts of the Niño 3.4 index from Freeman et al. (2023) are shown in Figure 1. The training data are Indo-Pacific sea surface temperature fields from a long control simulation of the CCSM4 climate model, and the test data are a separate segment of the same simulation. At short lead times the forecast distribution is narrow and follows the true values closely. As the lead time increases to 12 months the distribution broadens, in keeping with the growth of forecast uncertainty.
