Conditioning in Generative Quantum Denoising Diffusion Models

Daniel Quinn, Lorenzo Buffoni, Stefano Gherardini, Gabriele De ChiaraarXiv 2025 · DOI

Abstract

Quantum denoising diffusion models have recently emerged as a powerful framework for generative quantum machine learning. In this work, we extend these models by introducing a conditioning mechanism that enables the generation of quantum states drawn from multiple target distributions. By sharing parameters across distinct classes of quantum states, our approach avoids the need to train separate models for each distribution. We validate our method through numerical simulations that span single-qubit generation tasks, entangled state preparation, and many-body ground state generation. Across these tasks, conditioning significantly reduced the error of targeted state generation by up to an order of magnitude. Finally, we perform an ablation study to quantify the effect of key hyperparameters on the model performance.

Introduction

Generative quantum machine learning (GQML) aims to learn and sample from complex quantum data distributions, which has critical applications in areas like quantum chemistry and state preparation. Recently, Quantum Denoising Diffusion (QDD) models have emerged as a robust tool for these tasks. However, standard QDD models struggle with multimodal data—datasets containing multiple distinct classes or phases of quantum states. Traditionally, generating different types of states required training a separate model for each distribution. While classical machine learning uses "conditioning" (e.g., text prompts or class labels) to solve this, prior quantum attempts relied on initializing ancilla qubits in discrete computational basis states, which is inflexible and scales poorly.

Methods

The Conditioned QDD (CQDD) model introduces a continuous conditioning mechanism to overcome these limitations. Like classical diffusion models, it operates in two phases: Forward Diffusion, where random rotations scramble a target state into Haar randomness, and Backward Denoising, where a parameterized quantum circuit (PQC) reverses the noise step-by-step.

The core novelty lies in the conditioning of the backward process. Instead of discrete basis states, a rotation gate ($RX(\mu)$) is applied to ancilla qubits, where the continuous angle $\mu$ acts as the class label. During denoising, the system and ancilla qubits are entangled, and the ancilla is subsequently measured and discarded. This allows the model to smoothly encode many more classes than the number of ancilla qubits would traditionally allow.

Schematic of the CQDD model showing forward diffusion and backward denoising with continuous conditioning.

Results and Discussion

The authors evaluated the CQDD model on four simulated tasks: topological planar rings, polar point clusters, entangled Bell/GHZ/W states, and many-body ground states of the Transverse-Longitudinal Field Ising Model (TLFIM).

Performance and Scalability

Conditioning drastically improved performance across all benchmarks. In a 1-qubit ring generation task, the CQDD model reduced the error rate from 84% (unconditioned) to 7.9%—a full order of magnitude improvement. For 2-qubit entanglement tasks, error dropped from 5.9% to 1.4%. Notably, the continuous mechanism successfully handled six distinct classes using only two ancilla qubits, exceeding the $2^n$ limit of discrete encoding.

Training loss comparison between unconditioned and conditioned models, showing significant error reduction.

Key Insights

  • Continuous Encoding: This approach prevents "mode collapse," a failure mode where the model ignores the condition and outputs a blurred average of all classes.
  • Representational Complexity: Counterintuitively, the model found highly entangled states (like GHZ states) easier to learn than product states with random local phases, likely due to the higher effective rank of the latter.
  • Architecture Optimization: Ablation studies showed that deeper circuits with fewer ancilla qubits consistently outperformed shallower, wider circuits for a fixed parameter budget.

Conclusion

This work demonstrates that continuous conditioning is a powerful and scalable strategy for generative quantum models. While current limitations include poor interpolation between trained classes and the need for manual encoding of angles, the CQDD model significantly reduces the overhead for multi-class state generation. Future work will explore end-to-end learning of embeddings and robustness testing on noisy quantum hardware.

Summary updated

BibTeX
@misc{quinn2025conditioning,
  author = {Daniel Quinn and Lorenzo Buffoni and Stefano Gherardini and Gabriele De Chiara},
  title = {{Conditioning in Generative Quantum Denoising Diffusion Models}},
  year = {2025},
  eprint = {2509.17569},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.17569},
  howpublished = {arXiv},
}
Figure