|q⟩ Bad Qubits

advanced · Programming · Quantum Machine Learning (Advanced)

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:

They optimize opposite objectives, summarized by the value function

minθmaxϕ  Exq[logDϕ(x)]+Ez[log(1Dϕ(Gθ(z)))].\min_{\boldsymbol{\theta}} \max_{\boldsymbol{\phi}}\; \mathbb{E}_{\boldsymbol{x}\sim q}\bigl[\log D_{\boldsymbol{\phi}}(\boldsymbol{x})\bigr] + \mathbb{E}_{\boldsymbol{z}}\bigl[\log\bigl(1 - D_{\boldsymbol{\phi}}(G_{\boldsymbol{\theta}}(\boldsymbol{z}))\bigr)\bigr].

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:

Training challenges carry over — and grow

Everything that makes classical GANs finicky applies here, plus quantum-specific obstacles:

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.