fltech - Technology Blog of Fujitsu Research

A technology blog where Fujitsu researchers talk about a variety of topics

Quantum Generative Adversarial Autoencoders

Hello, I am Naipunnya Raj from the Quantum team at Fujitsu Research India Private Limited (FRIPL).

Quantum Autoencoders (QAE) are excellent at compressing quantum states, but what if we could also make them generate entirely new quantum states? In our recent work, we propose the Quantum Generative Adversarial Autoencoder (QGAA), a model that does exactly this by training a Quantum Generative Adversarial Network (QGAN) on the compressed latent space of a trained QAE. We validated this on entangled state generation and molecular ground state energy profiling for  \mathrm{H}_2 and  \mathrm{LiH}, achieving energy errors as low as  0.02\,\mathrm{Ha}. In this post, we walk through the core idea, the key results, and what this means for practical quantum machine learning.

The Gap: Compression Without Generation

A QAE learns to compress quantum states into a lower-dimensional latent space and reconstruct them with high fidelity. It has been applied to quantum simulation, denoising entangled states, and error mitigation on NISQ devices.

However, the QAE has a fundamental limitation: it cannot generate new quantum states from its latent space. The latent representation is learned, but there is no mechanism to sample from it. In classical machine learning, the Variational Autoencoder (VAE) solves this by regularizing the latent space with a known distribution. In the quantum setting, no such straightforward analogue exists.

This is the gap QGAA is designed to fill.

The QGAA Architecture

QGAA works in three stages.

Stage 1: Compress with QAE

We train a QAE to encode input quantum states into a compact latent register. The encoder is a parameterized unitary that maps an  n-qubit state into an  \ell-qubit latent subspace plus an  n-\ell-qubit "trash" subsystem. Tracing out the trash yields the compressed latent state. The decoder reverses this process using a fresh auxiliary register. Training minimizes a fidelity-based loss between original and reconstructed states.

QAE compression stage. The encoder  U_E compresses input quantum states  \sigma_K into a latent representation  \eta_K by tracing out the "trash" qubits. The decoder  U_D reconstructs the output state  \rho_K. Training minimizes the fidelity-based loss between  \sigma_K and  \rho_K. While this achieves effective compression, the latent space cannot be directly sampled for generation.

Stage 2: Learn the latent space with QGAN

After QAE training, we freeze the encoder and decoder parameters and train a QGAN to learn the distribution of latent states  {\eta_K}. The QGAN consists of:

Figure 2: QGAA adversarial learning stage. The latent states  {\eta_K} from the frozen trained encoder serve as "real data" for the QGAN. The generator produces "fake" latent states  {\nu_K} conditioned on the same labels. The discriminator learns to distinguish real from fake, while the generator learns to fool the discriminator. At convergence,  \nu_K \approx \eta_K for all training labels.

Generator: a parameterized quantum circuit that produces candidate latent states conditioned on label information.

Discriminator: a quantum circuit with a probe qubit that distinguishes real latent states, from the encoder, from fake ones, from the generator.

Through adversarial min-max optimization, the generator learns to produce latent states indistinguishable from the real ones.

Stage 3: Generate new quantum states

Once trained, the generator can produce new latent states for any label  K, including labels never seen during training. These are decoded through the trained QAE decoder  U_D to yield new full-size quantum states.

QGAA generation stage. The trained generator  U_g directly produces latent states  \nu_K for arbitrary label  K, including labels outside the training set. These are passed through the trained decoder  U_D to yield generated quantum states  \xi_K in the original Hilbert space. This is the key capability that QAE alone does not have.

Why This Design Works

The combination provides a bidirectional advantage:

Component Without QGAA With QGAA
QAE Compresses only Compresses and generates
QGAN Trains on full state space (expensive) Trains on compressed latent space (cheaper)

Compression makes generation easier. Generation makes compression more useful.

Application 1: Generating Entangled States

As a first demonstration, we prepared a family of parameterized 2-qubit entangled states and trained the QAE to compress them to 1 qubit. After compression, the latent states lie on the surface of the Bloch sphere. We trained a QGAN to learn this 1-qubit latent distribution.

Evolution of adversarial learning on the Bloch sphere. Red points show the generator output at successive training iterations; blue points are the target latent states from the trained QAE. Over training, the red points converge onto the blue targets, visually confirming that the generator learns the correct latent representation.

The generator's output converges toward the target latent states, confirming that adversarial learning successfully captures the compressed quantum distribution, including for label values not seen during training.

Application 2: Molecular Ground State Generation

This is where the practical value becomes concrete. We applied QGAA to generate the ground state energy landscape for two molecules,  \mathrm{H}_2, compressed from  4 qubits to  1, and  \mathrm{LiH}, compressed from  6 qubits to  4.

Density-matrix heatmaps at  r = 1.5\,Å (1)  \mathrm{H}_2: 4-qubit  16 \times 16 matrix compressed to 1-qubit  2 \times 2. (2)  \mathrm{LiH}: 6-qubit  64 \times 64 matrix compressed to 4-qubit  16 \times 16. The sparsity of the ground states makes aggressive compression feasible.

QAE Compression Results

MoleculeCompressionAvg. FidelityAvg. Energy Error
 \mathrm{H}_2 4 \rightarrow 1 qubit 0.99 \sim 10^{-4}\,\mathrm{Ha}
 \mathrm{LiH} 6 \rightarrow 4 qubits 0.94 \pm 0.03 0.02 \pm 0.01\,\mathrm{Ha}

After adversarial training on the compressed latent spaces, the QGAN generates energy profiles, including for interatomic distances not in the training set.

QGAN Generation Results

Learned ground-state energy profiles across different interatomic distances for (a)  H_2 and (b)  \mathrm{LiH}. Red points indicate the training data for the QGAN. The average fidelity of generated states is  0.97 for  \mathrm{H}_2 and  0.88 for  \mathrm{LiH}. In each sub-figure, panel (b) shows the fidelity and panel (c) shows the absolute energy error of the QGAN-generated states.

MoleculeAvg. FidelityAvg. Energy Error
 \mathrm{H}_2 0.97 \pm 0.02 0.02 \pm 0.01\,\mathrm{Ha}
 \mathrm{LiH} 0.88 \pm 0.09 0.06 \pm 0.02\,\mathrm{Ha}

Practical Takeaways

  1. Compress first, then generate. Training a generative model in a compressed latent space is cheaper and potentially more stable than training in the original space.
  2. Warm-starting variational algorithms. Even approximate generated states can serve as useful initial guesses for VQE, potentially accelerating convergence.
  3. Modular design. The QAE and QGAN are trained separately, so each component can be independently improved or replaced.
  4. Resource awareness. For near-term devices with limited qubits, working in a compressed space is not just convenient, it may be necessary.

Limitations and Open Challenges

  1. Scale: The largest experiment is 6 qubits. Vanishing gradients and fidelity estimation cost are barriers to scaling.
  2. Training stability: Adversarial convergence is not always straightforward in practice.
  3. Hardware: All results are noiseless simulations. Real-device noise remains open.

Summary and Outlook

QGAA turns a compression-only Quantum Autoencoder into a generative model by training a Quantum GAN on its latent space. We demonstrated this on entangled states and molecular ground states,  \mathrm{H}_2 and  \mathrm{LiH}, achieving energy errors as low as  0.02\,\mathrm{Ha}. By generating in a compressed space, quantum state generation becomes both more accessible and more resource-efficient.

For full details: arXiv:2509.16186