arXiv:2608.31117quant-phAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.31117

"Train classical, deploy quantum" requires rethinking generalization

Snehal Raj, Natansh Mathur, Alejandro Perdomo-Ortiz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Snehal Raj, 1,2^{1,2} Natansh Mathur, 1^{1} and Alejandro Perdomo-Ortiz 1,∗^{1,*}

1^{1}QC Ware Corp., Palo Alto, USA and Paris, France

2^{2}LIP6, CNRS, Sorbonne Université, Paris, France

Generative models have become central across science and industry, from image and text synthesis to the design of molecules and materials. Quantum generative models are considered one of the most promising applications for quantum computers, since a quantum circuit naturally produces samples from the distribution it encodes, and for suitable circuits that distribution is believed to be hard for any classical computer to reproduce. A leading strategy trains these models on a classical computer and reserves the quantum device for generating samples at deployment. This is possible when the training loss can be evaluated on a classical computer. A prime example is the maximum mean discrepancy (MMD 2^{2}), a moment-matching loss that compares the model and the data through their Pauli-Z correlations. Research so far has asked whether such models can be trained and whether their sampling is hard; whether minimizing such an objective yields a model that generalizes, rather than one that merely reproduces the training statistics, remains poorly understood. We benchmark a broad set of quantum and classical generative models by direct sampling and show that models trained with a moment-matching loss generally show worse generalization than the likelihood-trained models. We show this on two application-inspired datasets: first a cardinality-constrained dataset at up to 30 qubits and second a dataset of genomic single-nucleotide variants, whose valid set is the observed data. These results indicate that a converged moment-matching loss is not a reliable measure of generalization, and that train-classical, deploy-quantum workflows will need approaches that target generalization directly, leaving open whether better training objectives suffice or whether the model architectures themselves must change.

I. INTRODUCTION

Generative models are used across science and industry, from image synthesis [1, 2] and text generation [3] to the design of new molecules [4]. Generative models are usually evaluated on whether the samples that they produce are novel, valid, and faithful to the target distribution, rather than reproduce their training examples [5, 6]. Quantum circuits provide a natural way to build such models. A quantum circuit Born machine (QCBM) prepares a parametrized quantum state and generates samples by measuring it in the computational basis [7–9]. Quantum correlations can increase the expressive power of generative models [10, 11]. For certain circuit families, sampling from the output distribution is believed to be classically intractable under standard complexity assumptions [12, 13]. This possible sampling advantage has made QCBMs a candidate application for near-term quantum computers [7, 9]. QCBMs have been explored on tasks ranging from finance to image synthesis, and parametrized quantum circuits are applied across machine learning more broadly [14–17]. For a review of quantum generative models beyond QCBMs and their applications, see [18].

Training a QCBM directly on quantum hardware is however expensive, even with improved training schemes [19, 20]. Each gradient estimate requires many circuit evaluations, and barren plateaus can make typical gradients exponentially small in the number of qubits [21]. One route around this cost pretrains the circuit classically as a matrix-product-state approximation and then fine-tunes it on hardware [22]; the pretraining is classically efficient, though surpassing classical models still requires the added cost of hardware training. These costs have motivated a train classical, deploy quantum (TCDQ) strategy. The loss is evaluated and optimized on a classical computer, and the quantum device is used only after training to draw samples [23, 24]. This separation is possible because evaluating the quantities used by the loss can be classically tractable even when sampling from the full output distribution is believed to be classically hard. Indeed, many models that provably avoid barren plateaus also allow their losses to be evaluated efficiently on a classical computer [25]. Work on this strategy has mainly asked whether the classical loss can be optimized [22, 26] and whether the deployed model can be reproduced by a classical surrogate [27]. Existing work has paid much less attention to ensuring that the trained circuit is a useful generator. Sampling may be classically hard even if the model fails to produce unseen, valid data. We therefore ask a third question: once the loss has converged, does the model generalize?

Gili et al. [28] established a way to measure generalization in this setting. They distinguish an efficient learner, which only reproduces the training distribution, from an efficient generator, which produces new and valid samples. The two are separated by sampling the trained model, through four metrics: exploration, fidelity, rate, and coverage. Scoring a generative model by the novel, valid samples it produces is also longstanding practice in molecular design [6]. In this work we take up the generalization question through both an

L1\mathcal{L}_1: likelihood

Figure

FIG. 1. Training losses versus deployment generalization. An optimizer fits a generative model qθq_{\theta} (a tensor network, a neural network, or a quantum circuit) using quantities that can be evaluated without sampling the deployed model. The benchmark tests whether small empirical values of the negative log-likelihood ( L1\mathcal{L}_1), the fixed-order correlator ( L2\mathcal{L}_2), and the full-kernel MMD 2^2 ( L3\mathcal{L}_3) objectives correspond to better generalization (low forward KL; green).

empirical study and a theoretical analysis. Empirically, we benchmark thirteen classical and quantum generative models at up to 30 qubits, on two application-inspired datasets, a cardinality-constrained family and a set of genomic single-nucleotide variants. We score each model by free sampling, and we compare its training loss against its coverage and its forward Kullback-Leibler divergence to the target distribution. Across the benchmark, the moment-matching loss correlates poorly with both measures of generalization, whereas coverage and the forward KL agree much better with each other. Also, we find that moment-trained models generally generalize worse than likelihood-trained ones (Fig. 1). Theoretically, we prove that a loss fixed by a prescribed set of low-order correlators cannot certify generalization on its own. Two distributions can drive such a loss to zero and still cover very different fractions of the valid set.

The paper is organized as follows. Section II reviews quantum circuit Born machines and the TCDQ paradigm. Section III defines the deployed training losses as moment losses, generalization through the forward KL, and its sample-based metrics, coverage and fidelity. Section IV proves that a moment loss of bounded capacity admits exact global minimizers of exponentially small coverage, and locates the failure of the full MMD in its empirical minimizer, the memorizer. Section V reports the benchmark, ranking the models by loss, coverage, and forward KL on the cardinality-constrained family (to 30 qubits by state-vector simulation) and the genomic variants, and testing robustness across circuit gate count, kernel bandwidth, and a classical baseline.