Quantum GANs (Overview)
A quantum generative adversarial network (QGAN) borrows the classical GAN recipe — a generator and a discriminator locked in a minimax game — and lets one or both players be a quantum circuit. It extends the Born machine of the previous lesson by learning the comparison instead of fixing it to an MMD kernel.
The adversarial game
Two models train against each other:
- The generator produces fake samples, trying to fool the discriminator.
- The discriminator tries to tell real data from generated samples.
They optimize opposite objectives, summarized by the value function
The generator minimizes; the discriminator maximizes. At the Nash equilibrium the generator's distribution matches the data and the discriminator can do no better than guessing. Lloyd and Weedbrook (2018) gave the first quantum framing of this game; Dallaire-Demers and Killoran (2018) worked out gradient-based training for circuit implementations.
Quantum, classical, or both
Because either player can be a circuit, QGANs come in flavors:
- Quantum generator, classical discriminator. The most common near-term setup: a Born-machine generator produces bitstrings and a small neural net judges them. Useful when the data is classical but you want a quantum sampler.
- Quantum generator, quantum discriminator. Natural when the target is quantum data — for example, learning to reproduce an unknown quantum state. The discriminator measures an observable that distinguishes real from fake states.
- Hybrid loops. Gradients of the quantum player come from the parameter-shift rule; the classical player uses ordinary backpropagation. The two are interleaved in alternating updates.
Training challenges carry over — and grow
Everything that makes classical GANs finicky applies here, plus quantum-specific obstacles:
- Instability and mode collapse. The minimax dynamics can oscillate or collapse onto a few outputs, just as classically. Careful learning-rate balancing between the players is essential.
- Barren plateaus. A deep, unstructured quantum generator can suffer exponentially vanishing gradients (Module 7), stalling training before the game even gets going.
- Sampling noise. Each expectation is estimated from finite shots, injecting noise into both players' gradients.
Where QGANs fit
QGANs are best read as a research direction, not a turnkey tool: a way to train an implicit quantum generator with a flexible, learned loss. They shine conceptually for quantum-data tasks (state and channel learning) where a quantum discriminator avoids costly tomography. For classical data on today's hardware, the benchmarking lessons later in this module are the honest place to check whether the quantum generator actually beats a classical baseline.
Sign in on the full site to ask questions and join the discussion.