Q-Flow: Generative Modeling for Differential Equations of Open Quantum Dynamics with Normalizing Flows

Owen Dugan, Peter Y. Lu, Rumen Dangovski, Di Luo, Marin Soljacic

Abstract

Studying the dynamics of open quantum systems can enable breakthroughs both in fundamental physics and applications to quantum engineering and quantum computation. Since the density matrix $\rho$, which is the fundamental description for the dynamics of such systems, is high-dimensional, customized deep generative neural networks have been instrumental in modeling $\rho$. However, the complex-valued nature and normalization constraints of $\rho$, as well as its complicated dynamics, prohibit a seamless connection between open quantum systems and the recent advances in deep generative modeling. Here we lift that limitation by utilizing a reformulation of open quantum system dynamics to a partial differential equation (PDE) for a corresponding probability distribution $Q$, the Husimi Q function. Thus, we model the Q function seamlessly with off-the-shelf deep generative models such as normalizing flows. Additionally, we develop novel methods for learning normalizing flow evolution governed by high-dimensional PDEs based on the Euler method and the application of the time-dependent variational principle. We name the resulting approach $Q$-$Flow$ and demonstrate the scalability and efficiency of Q-Flow on open quantum system simulations, including the dissipative harmonic oscillator and the dissipative bosonic model. Q-Flow is superior to conventional PDE solvers and state-of-the-art physics-informed neural network solvers, especially in high-dimensional systems.

Introduction

Simulating open quantum systems—quantum systems that interact with an external environment—is a cornerstone of modern physics, essential for developing quantum computers and understanding many-body phenomena. Traditionally, these systems are described by a density matrix $\rho$. However, modeling $\rho$ directly presents significant computational hurdles. As the number of particles increases, the size of the density matrix grows exponentially, a phenomenon known as the "curse of dimensionality." Furthermore, $\rho$ is complex-valued and must adhere to strict mathematical constraints, such as maintaining a trace of one, which complicates its integration with standard machine learning frameworks.

To overcome these barriers, we introduce Q-Flow, a framework that reformulates quantum dynamics into a probability distribution problem. By mapping the density matrix to the Husimi Q function, we transform the problem into a real-valued partial differential equation (PDE) that can be solved using advanced generative modeling techniques like Normalizing Flows (NFs).

Methodology

The Husimi Q-Function Reformulation

The core innovation of Q-Flow lies in its "translation" of quantum states. Instead of attempting to model the high-dimensional, complex-valued $\rho$, we utilize the Husimi Q function. This function provides a phase-space representation of the quantum state that is non-negative and integrates to unity. Because the Q function behaves as a valid probability distribution, it allows for a seamless connection to Normalizing Flows, which are specifically designed to model and sample from complex distributions.

Evolving the System with Normalizing Flows

To simulate the evolution of the system over time, we propose two distinct training methodologies for the Normalizing Flow parameters:

  1. Stochastic Euler-KL: This approach employs a first-order Euler discretization to estimate the target distribution at a subsequent time step ($t + dt$). The model is then optimized by minimizing the Kullback-Leibler (KL) divergence between the current NF and the predicted target.
  2. Time-Dependent Variational Principle (TDVP): This more rigorous method treats the system's evolution as a nonlinear differential equation within the neural network's parameter space. It effectively utilizes a "natural gradient" descent to track the distribution's trajectory.

By leveraging off-the-shelf NFs such as RealNVP or Convex Potential Flows, Q-Flow provides exact density estimation and efficient sampling, both of which are vital for calculating physical observables.

Experimental Evaluation

We evaluated Q-Flow across several challenging physical models to test its scalability and accuracy:

  • Dissipative Harmonic Oscillator: This benchmark model allowed us to compare Q-Flow against analytic solutions. We successfully scaled the simulation to a 20-site system, which corresponds to a 40-dimensional PDE.
  • Dissipative Bosonic Model: This nonlinear system simulates an antisymmetric Bose-Einstein Condensate (BEC). This test case demonstrated Q-Flow's ability to capture multimodal distributions and complex particle exchanges between sites.

Key Results and Performance

Q-Flow demonstrates a significant advantage over traditional numerical methods and contemporary AI solvers:

  • Scalability: In the 20-site harmonic oscillator test, traditional finite-difference and pseudo-spectral solvers failed due to memory exhaustion. Q-Flow, however, maintained high accuracy, as its complexity is tied to the distribution's features rather than the grid size.
  • Comparison with PINNs: Physics-Informed Neural Networks (PINNs) often struggle with high-dimensional quantum PDEs. In our 20-site experiments, PINNs diverged significantly (errors reaching $10^{31}$), while Q-Flow maintained stable $L_1$ errors between 0.01 and 0.1.
  • Efficiency: We found that the Stochastic Euler-KL method is particularly efficient for large-scale systems, as it avoids the computationally expensive inversion of the Fisher Information Matrix required by TDVP.

Discussion and Limitations

While Q-Flow represents a major step forward, it is not without limitations. The accuracy of the simulation is sensitive to the time-step size ($dt$), and physical observables can occasionally exhibit "jitter" due to sampling noise during the training process.

Future research will focus on applying Q-Flow to even more complex many-body systems, such as superconductors and noisy quantum hardware. Beyond physics, the principles of Q-Flow—using generative models to solve high-dimensional PDEs via probability reformulations—could have broad applications in fluid dynamics, finance, and other fields plagued by the curse of dimensionality.

Summary updated

BibTeX
@inproceedings{dugan2023q,
  author = {Owen Dugan and Peter Y. Lu and Rumen Dangovski and Di Luo and Marin Soljacic},
  title = {{Q-Flow: Generative Modeling for Differential Equations of Open Quantum Dynamics with Normalizing Flows}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=6rqa493Sxf},
}
Figure