# Classical training of conditional instantaneous quantum polynomial-time Born machines

Quantum.world

> Input-conditioned IQP Born machines are classically trainable and can represent conditional families that diagonal conditioning cannot, changing how quantum generative models encode controls.

**arXiv**: 2611.05483 · Preprint · not peer-reviewed

**Published**: 2026-11-03

**Authors**: Oriol Balló-Gimbernat, Emiliano Tolotti, Laia Domingo, Fernando Vilariño, Adan Garriga

## In plain words

Conditional generative models learn a whole family of probability distributions p(·|c) with one model, so that a single set of parameters captures how the distribution changes with a condition such as temperature or a class label. Existing conditional IQP Born machines make the diagonal layer of the circuit condition-dependent, adapting separate parameter blocks per condition rather than learning the family jointly.

## AI summary

## Overview

**Research area:** Quantum machine learning / quantum generative modeling — specifically classically trainable IQP (instantaneous quantum polynomial-time) Born machines extended to conditional generation.

**Technical level:** Advanced. The paper combines complexity-theoretic arguments (a proposition on representational separation), unbiased estimator derivations, and numerical experiments on statistical-physics target distributions.

**Scope (one sentence):** The paper proposes and evaluates conditional IQP Born machines in which the conditioning variable is encoded in the quantum input state while a single IQP unitary is shared across all conditions, and shows that such models can be trained entirely classically and deployed on quantum hardware only for sampling.

## What This Paper Is About

Conditional generative models learn a whole family of probability distributions p(·|c) with one model, so that a single set of parameters captures how the distribution changes with a condition such as temperature or a class label. Existing conditional IQP Born machines make the *diagonal layer* of the circuit condition-dependent, adapting separate parameter blocks per condition rather than learning the family jointly. This paper instead puts the condition into the *input state* — a fixed IQP unitary is shared across all conditions — and shows this preserves fully classical training while enlarging the set of families the model can represent.

## Key Contributions

1. **Input-conditioned IQP Born machines with classical training.** The condition c is mapped by an encoder to an input state |φ(c)⟩, and the same IQP unitary U_θ = H^⊗n D(θ) H^⊗n acts on every condition. Training requires only a "sampling-and-ratio interface" on the reference state |ψ_c⟩ = H^⊗n|φ(c)⟩: exact samples z ~ |ψ_c(z)|² and amplitude ratios R_c(z,a) = ψ_c(z⊕a)/ψ_c(z). This is enough to get unbiased classical estimates of Pauli-Z moments, a conditional MMD objective, and its gradients.
2. **A representational separation (Proposition 1).** Because an IQP unitary is diagonal in the X basis, it cannot change the output's X-basis distribution, which is fixed by the input. The authors prove that diagonal conditioning on a fixed pure input can reproduce a family exactly only if one X-basis distribution is compatible with every member, and that for every n ≥ 2 and every fixed IQP unitary there exist families (e.g. a deterministic outcome together with a uniform distribution over three strings) that no fixed input reproduces but that condition-dependent inputs with an efficient sampling-and-ratio interface reproduce exactly.
3. **A symmetry-encoding mechanism.** Encoding a bit-flip symmetry X_h in the input state imposes q_θ(x|c) = q_θ(x⊕h|c) for every parameter vector and condition, while leaving the IQP unitary unrestricted — used here to impose global spin-flip symmetry on every member of the Curie–Weiss family.
4. **Numerical validation at 16 qubits and beyond.** Two target families are tested: a two-coordinate Hamming-weight family and the Curie–Weiss spin model. Models are also trained classically with up to 2048 qubits, and models with up to 30 qubits are sampled on real quantum hardware (Appendix B.6).

## Main Findings

- **Generalization to unseen condition combinations (Hamming-weight family, 16 qubits).** Trained only on nine conditions lying on the two coordinate axes, the input-conditioned model reaches a mean full-distribution TVD of **0.0216 ± 0.0017** at sixteen mixed conditions, with **0.0085 ± 0.0012** at the four conditions inside the training hull and **0.0259 ± 0.0018** at the twelve outside it.
- **Diagonal conditioning is roughly three times worse on this task.** The baseline — the same 40-phase lattice circuit applied to |0⟩^⊗16 with its phases an affine function of the condition (120 parameters in total) — reaches a TVD of **0.069 ± 0.002** at the mixed conditions. The gap is already present at the non-origin training conditions (**0.048 ± 0.002** versus **0.0117 ± 0.0011**), ruling out a purely extrapolation effect, and arises mainly from the width coordinate: the baseline follows the shift of the mean but changes the width by only 3–4%.
- **Error tracks target hardness, not distance to training data.** Across the condition square, the input-conditioned model's error correlates more strongly with each target's TVD from the uniform distribution (**0.91**) than with its distance to the nearest training condition (**0.72**).
- **The Curie–Weiss crossover is captured by one model (16 qubits).** A single conditional model reproduces the change from a unimodal to a bimodal magnetization profile at held-out temperatures. Its mean TVD is **six times lower** than diagonal conditioning under the same protocol, and comparable to classical generative models with up to **seven times as many parameters**. It is on average as accurate as circuits trained separately at each evaluation temperature.
- **The choice of encoder matters.** An encoder that conditions only through input-state phases already lowers the TVD **2.7 times** relative to diagonal conditioning; adding a one-axis-twisting step lowers it more than twofold further, to **one sixth** of diagonal conditioning.
- **Classical training scales to 2048 qubits.** Because Curie–Weiss observables follow exactly from sums over n+1 Hamming weights, models trained with up to **2048** qubits are checked against the target's mean squared magnetization away from the crossover.
- **Estimator quality is dimension-independent.** Averaging S samples gives mean-square errors of at most **1/S** for moments and **4/S** for gradients, with no bound required on individual amplitude ratios, and estimator variances are bounded independently of the number of qubits (Appendix A.2).

## Methodology in Plain English

The model is a circuit of the form Hadamard–diagonal–Hadamard. The middle diagonal layer attaches a trainable phase to each of a polynomial number of Pauli-Z strings, and because the Hadamards swap the Z and X bases, the whole circuit is diagonal in the X basis. That structural fact does all the work: the circuit can only *rephase* the input state's amplitudes, never change their magnitudes.

The authors exploit this by putting the condition in the input. An encoder turns each condition into a quantum state whose amplitudes depend on that condition. For training, they never need to simulate the full quantum state. They only need two cheap operations on the state that enters the diagonal layer: draw samples from it, and compute ratios of pairs of its amplitudes. Product states, matrix product states of polynomial bond dimension, and permutation-symmetric states all support these operations efficiently — and permutation-symmetric states are exactly what the chosen targets need, since both families assign equal probability to all bitstrings of the same Hamming weight.

With those two operations, each Pauli-Z moment becomes an average over sampled bitstrings of a ratio times a phase factor. Plugging these moments into a Gaussian-kernel maximum mean discrepancy gives an objective that, at each condition, is a weighted squared distance between the Walsh–Fourier spectra of the target and the model. The full objective averages this over training conditions and over several kernel bandwidths, with no term coupling different conditions — learning across conditions happens only through the shared parameters. Gradients come from the same samples, with the derivative of the phase difference contributing a factor of −2χ_g(z) when the mask and generator overlap in an odd number of positions.

Experiments compare input conditioning against a diagonal-conditioning baseline under the same hyperparameter-selection protocol on development conditions, evaluating on separate held-out conditions using exact total variation distance computed from exact circuit probabilities, averaged over ten random seeds.

## Why This Matters

**Impact on research.** The paper identifies a concrete structural limitation of the dominant approach to conditional IQP Born machines — that diagonal conditioning leaves the X-basis distribution frozen — and offers a fix that costs no extra qubits and no quantum hardware during training. It turns a known non-universality result for unconditional IQP Born machines into a design principle: the input state, not the diagonal layer, is where representational power for conditional families has to come from. The result connects cleanly to prior work on hidden qubits (which restore universality at the cost of extra qubits and exponentially many phases), suggesting a trade-off between hidden-qubit count and encoder complexity.

**Potential real-world applications** (the paper's own demonstrations are on physics targets; broader uses are extrapolations):

- **Statistical mechanics and materials modeling:** generating spin configurations across a temperature range with one trained model, including across a phase transition, as demonstrated on the Curie–Weiss model.
- **Conditional sampling for structured binary data:** the Hamming-weight family is a stand-in for data whose relevant structure is a weight or count, such as occupancy or load patterns.
- **Symmetry-constrained generative modeling:** systems where a known symmetry (here global spin flip) should hold exactly rather than be learned approximately.
- **Hybrid quantum-classical pipelines:** settings where training is done on classical hardware and only final sampling requires a quantum device, as done here for up to 30 qubits.

**Industry relevance.** The classical-trainability property is the commercially interesting part: it removes the need for expensive parameter-shift gradient evaluation on noisy hardware, which the paper notes scales linearly in the number of parameters and is vulnerable to barren plateaus. Quantum hardware is then used only for sampling, which is the step conjectured to be classically hard for certain IQP circuit families.

## Future Directions

- **Scaling hardware demonstrations beyond 30 qubits.** Sampling was performed on real quantum hardware only up to 30 qubits; whether the classical-training / quantum-sampling split remains useful at larger widths under realistic noise is untested here.
- **Exploring the hidden-qubit versus encoder-complexity trade-off.** The paper explicitly notes that hidden qubits also lift the obstruction of Proposition 1 (a single hidden qubit lets diagonal conditioning reproduce every two-qubit distribution) and that input conditioning reaches such families without extra qubits, suggesting a trade-off worth quantifying.
- **Barren-plateau mitigation for conditional IQP models.** The authors state that dedicated mitigation strategies for IQP Born machines are outside their scope, while noting that emphasizing low-order masks in the MMD objective mitigates barren plateaus at the cost of sensitivity to higher-order differences.
- **Encoders for non-permutation-symmetric and non-binary targets.** The demonstrated encoders rely on permutation-symmetric reference states; extending the sampling-and-ratio interface to richer data types follows prior work extending IQP training to non-binary discrete data.

## Target Audience

Researchers and graduate students in quantum machine learning and quantum generative modeling who are already comfortable with parameterized circuits, Born machines, and kernel/MMD objectives. It will be most valuable to readers interested in classically trainable quantum models, in the representational limits imposed by IQP structure, and in conditional or family-level generative modeling; the estimator derivations and Proposition 1 will also interest complexity-minded readers. Readers without a quantum information background will find the introduction and the numerical results sections accessible, but the estimator and encoder sections require familiarity with Pauli operators, Hadamard-basis arguments, and Walsh–Fourier expansions.

## Authors’ abstract

Instantaneous quantum polynomial-time (IQP) Born machines are attractive quantum generative models, as certain IQP circuit families are conjectured to be hard to sample, yet they can be trained classically. Previously proposed conditional IQP Born machines make the parameters of the diagonal layer condition dependent. We introduce conditional IQP Born machines, in which the condition is encoded in the input state and a single IQP unitary is shared across conditions.…

[The full abstract on arXiv](https://arxiv.org/abs/2611.05483)

[Read the original paper](https://arxiv.org/abs/2611.05483)

## Related papers

- [eigenkit: A Provider-Neutral Quantum Computing Library](https://quantum.world/paper/eigenkit-a-provider-neutral-quantum-computing-library-2611.02979) 2026-11-02 · quant-ph · Also by Laia Domingo
- [Variational Quantum Conditional Boltzmann Machines for Time-Series Forecasting: Architectures, Symmetric Hyperparameter Evaluation, and a Nonlinear Benchmark](https://quantum.world/paper/variational-quantum-conditional-boltzmann-machines-for-time-series-2607.24065) 2026-07-27 · quant-ph · Key terms of the title in common
- [QPAT: A Universal Quantum Machine Learning Framework for Quantum-Assisted Training and Classical Inference](https://quantum.world/paper/qpat-a-universal-quantum-machine-learning-framework-for-quantum-2611.33806) 2026-11-25 · quant-ph · Key terms of the title in common
- [Trinetra.Q: Statistical and Behavioral Detection of Attacks on the Quantum-Error-Correction Layer and Classical Control Stack of Quantum Computing Systems](https://quantum.world/paper/trinetra-q-statistical-and-behavioral-detection-of-attacks-on-the-2611.05722) 2026-11-03 · quant-ph · Key terms of the title in common
- [A GPU-Accelerated and Geometry-Aware Quantum-Classical Framework for Optimized PES Scans with CUDA-Q](https://quantum.world/paper/a-gpu-accelerated-and-geometry-aware-quantum-classical-framework-for-2611.01389) 2026-11-01 · quant-ph · Key terms of the title in common

---

Canonical: https://quantum.world/paper/classical-training-of-conditional-instantaneous-quantum-polynomial-time-2611.05483
