arXiv:2610.12428quant-phOct 2026

Manuscript Offprint

arXiv:2610.12428

Toward Joint Optimization of Circuit Depth and Training Data Size in Adaptively Grown Quantum Classifiers

Saeefa Rubaiyet Nowmi, Md Mahmuduzzaman Kamol, Mohammad Saidur Rahman

Abstract

Building a quantum model involves a tradeoff: how complex the circuit should be, and how much training data it needs. Caro et al. show that models with fewer trainable gates need less training data to generalize well. Q-FLAIR shows that a quantum feature-map circuit can be grown gate-by-gate, stopping once further growth stops improving the training loss. We ask whether these two results combine into a predictable scaling law. Does Q-FLAIR's own stopping rule pick larger or smaller circuits as training data grows? Does the resulting generalization behavior track Caro et al.'s bound?

We reimplement Q-FLAIR’s growth mechanism faithfully, including its analytic reconstruction and exact stopping rule. We run it on full-resolution (784-pixel) MNIST 3-vs-5 classification, at five training-set sizes from N=2000N = 2000 to 10000. We then fine-tune each resulting circuit, so we can measure Caro et al.’s notion of active gates, KK.

We find no predictable relationship between training-set size and the circuit size Q-FLAIR converges to. Circuit size and test accuracy both vary non monotonically with N, and seed-to-seed variance is nearly as large as any trend across N. The empirical generalization gap never exceeds Caro et al.'s bound in 14 of 15 runs, so the bound holds as a valid guarantee. But the gap correlates only weakly with the bound's value (r = 0.12). This shows that K does not explain most of the variation we observe. Why a valid guarantee can coexist with such weak predictive power remains an open question, and answering it may be necessary before circuit depth and training data size can be jointly optimized in practice.

1 Introduction

Quantum feature maps embed classical data into quantum states, and this idea underlies most modern quantum machine learning [4, 7]. A common design choice re-encodes data across multiple layers, a technique known as data re-uploading [6]. Building such a model requires two largely independent decisions. The first is how much training data to use. The second is how complex the variational circuit should be.

Caro et al. [2] give a theoretical answer to the second question, given the first. A model with T trainable gates generalizes with error O(Tlog⁡T/N)O(\sqrt{T \log T/N}). This tightens to O(Klog⁡(MT)/N)O(\sqrt{K \log(MT)/N}) when only K≪TK \ll T gates change substantially during training. Q-FLAIR [5] answers a complementary question. Given a fixed training set, it grows a feature-map circuit gate-by-gate from empty. It uses an efficient analytic reconstruction to pick each gate's best weight and data feature, and it does this classically. Growth stops once further growth no longer improves the training loss.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: SaTQuML: Secure and Trustworthy Quantum Machine Learning.

Adaptive circuit growth is not unique to Q-FLAIR. ADAPT-VQE grows ansatze gate-by-gate for molecular simulation [3], and VAns grows and prunes circuit structure during training [1]. Caro et al. use VAns in their own unitary compiling experiments. Neither ADAPT-VQE nor VAns, however, is studied as a function of training-set size, and neither work asks the question their combination with a generalization bound raises.

That question is this: if Q-FLAIR’s growth algorithm is handed different amounts of training data, does the circuit size it converges to change in a way consistent with Caro et al.’s theory? A related question also follows: is the number of trainable gates required systematically correlated with the size of the training data? Answering these questions requires actually running Q-FLAIR’s mechanism, not a fixed circuit family, across a range of N. This is what we do here, on full-resolution (unreduced, 784-pixel) MNIST 3-vs-5 classification. This setting matches Q-FLAIR’s own “MNIST 28×28” benchmark dimensionality exactly [5].

Contributions. (1) A faithful reimplementation of Q-FLAIR’s QNN growth mechanism: the exact gate pool, observable, reconstruction, and stopping rule. We make this tractable at d=784d = 784 by using a bounded scalar optimizer in place of brute-force grid search for the classical feature-selection step. (2) A joint fine-tuning stage that makes Caro et al.’s K measurable for a Q-FLAIR-grown circuit, something neither source method provides on its own. It includes an explicit safety comparison against Q-FLAIR’s own pre-fine-tune result.

(3) An empirical finding: on high-dimensional raw-pixel data, circuit size and accuracy vary non-monotonically and noisily with N, with no discernible scaling trend. This indicates that a straightforward joint depth/data scaling relationship does not emerge automatically from combining these two methods, and that achieving one in practice will require further exploration.