Generative AI for Quantum Circuits and Quantum Code: A Technical Review and Taxonomy
Organizations: University of Vaasa & University of Turku
Abstract
We review thirteen generative systems and five supporting datasets for quantum circuit and quantum code generation, identified through a structured scoping review of Hugging Face, arXiv, and provenance tracing (January-February 2026). We organize the field along two axes: artifact type (Qiskit code, OpenQASM programs, circuit graphs); crossed with training regime (supervised fine-tuning, verifier-in-the-loop RL, diffusion/graph generation, agentic optimization); and systematically apply a three-layer evaluation framework covering syntactic validity, semantic correctness, and hardware executability. The central finding is that while all reviewed systems address syntax and most address semantics to some degree, none reports end-to-end evaluation on quantum hardware (Layer 3b), leaving a significant gap between generated circuits and practical deployment. Scope note: quantum code refers throughout to quantum program artifacts (QASM, Qiskit); we do not cover generation of quantum error-correcting codes (QEC).
Figures & tables
| Year | System / Dataset | Type | Key Innovation |
| 2020 | QASMBench [ 10 , 11 ] | Benchmark | Curated low-level OpenQASM 2.0 benchmark suite for NISQ evaluation |
| 2024 | genQC [ 12 , 13 ] | Model | First diffusion model for quantum circuit synthesis; text-conditioned denoising over discrete gate tokens |
| 2024 | KetGPT [ 14 , 15 ] | Model | GPT-based transformer for generating realistic OpenQASM 2.0 circuits (dataset augmentation) |
| 2024 | AltGraph [ 16 ] | Model | Generative graph models (D-VAE, DeepGMG) for circuit DAG rewriting and optimization |
| 2024 | QiskitHumanEval [ 6 ] | Benchmark | Unit-test benchmark (101 tasks) for Qiskit code generation |
| 2024 | quantum-circuits-8k [ 17 ] | Dataset | Synthetic text QASM 2.0 pairs with paraphrase augmentation |
| System | Family | Out- | |||
| put | Size | Syn. | Sem. | HW | Evaluation Notes |
| QuantumGPT- | |||||
| 124M | |||||
| [ 32 , 17 ] | Spec. | ||||
| small LM | QASM | ||||
| 2.0 | 124 M | ✓ | Lim | — | Parser validation; manual inspection on 5 qubit circuits (no oracle) |
| Dataset | Primary use | Scale | Notes |
| quantum-circuits-8k [ 17 ] | Text OpenQASM 2.0 SFT | 8 k | Synthetic with paraphrase augmentation; small-circuit emphasis |
| graph-data-quantum-rl [ 31 ] | Optimization-circuit generation and RL | 14.5 k rows | Prompts, graphs, Hamiltonians, OpenQASM 3.0 circuits, solutions |
| QASMBench [ 11 , 10 ] | OpenQASM-2 benchmark suite | diverse | Curated benchmark circuits and circuit-level metrics |
| QCircuitBench [ 20 ] | Algorithm design benchmarking | 120,290 | QASM 3.0 + code (Qiskit/Cirq) + oracles / verification functions |
| QuantumLLMInstruct [ 18 , 19 ] | Broad quantum instruction data | 500k+ claimed | Paper/model card claim 500k+ instruction-tuning pairs across 90+ quantum domains; current public HF viewer exposes 5.15k rows |
| Task Objective | Recommended Evaluator | Known Failure Modes |
| Compilation to target unitary | Process fidelity, diamond norm proxy, or equivalence checking on a basis subset | Relative phase errors invisible to basis-restricted measurement; partial basis checking misses errors on untested inputs; ancilla garbage passes fidelity but fails full equivalence |
| Optimization ansatz generation | Energy expectation value convergence speed robustness under re-optimization | Low-energy ansatz may be a local minimum; convergence speed conflated with initial parameter sensitivity |
| Algorithm design tasks | Oracle-based functional checks (as in QCircuitBench [ 20 ] ) | Oracle leakage if test structure correlates with training data; hard to verify beyond provided oracles |
| Code assistants (Qiskit) | Unit tests execution traces (QiskitHumanEval [ 6 ] ) | Tests check observable behaviour, not internal correctness; ancilla state and relative phase may be ignored |
| Dataset augmentation | Real-vs-random classification structural analysis (KetGPT [ 14 ] ) | Distribution matching without semantic grounding; generated circuits may be syntactically realistic but computationally trivial |