Towards efficient quantum algorithms for diffusion probability models

Yunfei Wang, Ruoxi Jiang, Yingda Fan, Xiaowei Jia, Jens Eisert, Junyu Liu, Jin-Peng LiuarXiv 2025 · DOI

Introduction

Recent research bridging generative AI and fault-tolerant quantum computing has introduced the first efficient quantum algorithms for Diffusion Probabilistic Models (DPMs). By mapping the non-linear equations underlying diffusion processes to quantum linear systems, this work suggests that quantum computers could offer significant speedups for high-dimensional generative tasks such as image and audio synthesis.

The Challenge: Non-linear Diffusion ODEs

Diffusion models, which power state-of-the-art tools like Stable Diffusion, generate data by iteratively denoising pure noise. This process is mathematically described by a Probability Flow Ordinary Differential Equation (ODE). As data dimensionality (e.g., image resolution) grows, solving these ODEs classically becomes a significant bottleneck in terms of time and energy. While quantum computers excel at linear algebra, diffusion ODEs are inherently non-linear, requiring a specialized mathematical bridge to be solved on quantum hardware.

Methodology: Carleman Linearization

The core innovation lies in applying Carleman linearization to the diffusion process. This technique transforms a non-linear ODE into a system of linear equations—albeit infinite-dimensional—which can then be truncated and solved using quantum algorithms.

Overview of classical and quantum diffusion probability model workflows.

The researchers developed two primary quantum frameworks:

  1. Quantum DPM-solver-k: Uses a $k$-th order Taylor expansion to approximate the denoising function.
  2. Quantum UniPC: Adapts the "Unified Predictor-Corrector" framework, a state-of-the-art classical method, for quantum execution using finite differences.

These frameworks leverage heavy-duty quantum tools like Quantum Linear System Solvers (QLSS) and Linear Combination of Hamiltonian Simulations (LCHS) to achieve efficient state evolution.

Numerical Verification and Dissipativity

To validate their theoretical speedups, the authors analyzed the Jacobian eigenvalues of the diffusion process using benchmarks like ImageNet-100 and U-ViT. A critical requirement for quantum ODE solvers is that the system must be "dissipative," meaning trajectories contract over time.

Spectrum dynamics and dissipative measures of the reverse diffusion process.

The experiments confirmed that the reverse diffusion process naturally exhibits this property. As the model denoises, the spectral gap of the Jacobian increases, ensuring that the Carleman linearization remains stable and well-behaved.

Key Insights

  • Physical Plausibility: The discovery that reverse diffusion is naturally dissipative confirms that a "quantum advantage" is physically grounded for this class of models.
  • Addressing the QRAM Bottleneck: By focusing on sparse training and data representations, the proposed algorithms can potentially function without Quantum RAM (QRAM), a common hurdle in quantum machine learning.
  • Advanced Numerical Schemes: The implementation of UniPC shows that quantum devices can handle sophisticated multi-step numerical schemes beyond simple Euler integrations.

Results and Complexity

The study proves that query complexity for the DPM-solver scales as $O(J\kappa \cdot \text{polylog}(N/\epsilon))$, where $N$ is the system size. This indicates a potential exponential speedup over classical solvers regarding data dimensionality. Furthermore, the cost for "downloading" generated data back to a classical format (tomographic recovery) was rigorously defined, scaling as $O(m^2 r^3 / \epsilon^2)$ for $r$-sparse vectors.

Limitations and Future Outlook

While promising, challenges remain. Carleman linearization involves truncation errors that require further analytical bounding for complex deep-learning functions. Additionally, these algorithms are designed for the Fault-Tolerant Quantum Computing (FTQC) era, requiring hardware with roughly 100 logical qubits and significant gate depth. Future work may also explore applying quantum efficiencies to the training stage of diffusion models.

Summary updated

BibTeX
@misc{wang2025towards,
  author = {Yunfei Wang and Ruoxi Jiang and Yingda Fan and Xiaowei Jia and Jens Eisert and Junyu Liu and Jin-Peng Liu},
  title = {{Towards efficient quantum algorithms for diffusion probability models}},
  year = {2025},
  eprint = {2502.14252},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.14252},
}
Figure