TRANSMISSION // 2611.37051v1
A Quantum Circuit Joins a Tiny TREC Question Classifier
Source published
A simulated four-qubit circuit was tested inside a CNN for sorting TREC questions into two categories. A small, restricted test set and differing training setups make the accuracy results preliminary; training time varied sharply by configuration.

Can a small quantum circuit help classify questions when a classical neural network already extracts text features? This study tests a hybrid model on a narrow slice of the TREC question dataset, reporting both classification scores and the time required to train different simulated configurations.
A small question-classification test
Question classification sorts a question by the kind of answer it calls for. In this study, the labels were description (DESC) and human (HUM). The researchers asked whether a variational quantum circuit (VQC)—a circuit with adjustable settings trained alongside a classical model—could process a compact, four-feature bottleneck in a text classifier, and what that setup would cost to train in simulation. The circuit had 24 trainable parameters, just 0.15% of the model’s total; most parameters were in the classical text-processing components.
Trainable word embeddings converted tokens into numerical representations, and a convolutional neural network (CNN) extracted patterns from the word sequences. The model projected its features onto four rotation angles and passed them to a simulated four-qubit circuit. A classical output layer then mapped the circuit’s four outputs to two class scores.
The comparison model kept the same text-processing network but replaced the circuit with a small classical layer. This was a targeted comparison of two ways to process the same four-dimensional bottleneck, not a contest between the hybrid model and every possible question classifier.
A restricted dataset, not the official test
The researchers pooled TREC’s official training and test files, then applied filters to create a balanced binary subset: questions were limited to eight words, restricted to DESC and HUM, stripped of duplicate texts, and filtered to exclude questions containing words that appeared fewer than twice. After balancing the categories, they made training and test splits using a vocabulary-aware procedure: each test question had to use only words present in the training split. The resulting data contained 174 training questions and 44 test questions, evenly divided between the two categories. Of those 44 test questions, 42 came from the official training file and two from the official test file.
These choices matter. The test set was small and contained only short questions with familiar vocabulary; it was not the official TREC test split. Its accuracy cannot be compared directly with published results on that test set. The experiment also does not establish how the models handle longer questions, unseen words, or all six TREC categories.
The models were trained for 20 epochs, with each configuration run once using a single random seed. The Aer GPU setup used smaller batches and made more optimization updates than the other full runs. It also used a different method to calculate circuit gradients. These differences complicate direct comparisons of accuracy and runtime.
Similar scores, very different runtimes
On the 44-question test set, the hybrid model trained with Qiskit Aer’s GPU simulator classified 43 questions correctly, or 97.73%. The classical control got 42 right, or 95.45%. That difference amounts to one question. With one run, a small test set and no stored per-question predictions for paired statistical testing, the result does not establish a consistent accuracy advantage from the quantum layer.
Training time varied much more across the tested configurations. The classical control took 1.3 seconds. A hybrid run using PennyLane’s default.qubit simulator with state-vector backpropagation took 4.8 seconds. The Aer GPU configuration took 10,127 seconds—about two hours and 49 minutes. These times describe particular implementations, not an intrinsic cost of hybrid models: the backends, batch sizes and gradient methods differed.
One possible contributor to the long Aer run was the parameter-shift gradient method, which estimates gradients by evaluating circuits at shifted parameter values. At each optimization step, it required 56 shifted circuit executions plus a forward execution for every training question; questions were processed individually. The researchers did not profile individual steps, however, so they cannot determine how much time came from circuit calls, software overhead, data movement or device computation.
The study also estimated Aer CPU time from a few optimization steps on a separate machine. That projection suggested a longer time per epoch than the GPU run, but it was not a complete, matched CPU training run. It is not a precise measurement of GPU speedup.
What the results do—and do not—show
The work demonstrates that this CNN–VQC pipeline could be trained end to end under classical simulation and reach a high score on this selected binary task. It does not show that the quantum component caused the one-question accuracy difference, that the approach works on the full TREC benchmark, or that GPU simulation is generally faster. Both hybrid configurations reported 99.43% training accuracy, while the classical control reached 100%. The one-seed design leaves uncertainty about how results might vary across runs.
The source is an arXiv preprint, and the findings should be treated as preliminary. The authors identify next steps including repeated runs with different seeds, a validation split, stored individual predictions, aligned training conditions, runtime profiling, and tests on the full six-class task and more challenging inputs. Comparisons with finite-shot or noisy simulation and real quantum hardware are also future work: the reported circuits were simulated without measurement-shot sampling.
- quantum machine learning
- TREC question classification
- variational quantum circuit
- hybrid CNN
- quantum simulation
- training runtime
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A quantum bottleneck helps anomaly detection—but classical models still lead
Source published
Shared keywords: quantum machine learning
How Fourier analysis probes quantum neural networks
Source published
Shared keywords: quantum machine learning
Cqlib aims to connect quantum programs from code to hardware
Source published
Shared keywords: quantum simulation
Learning when quantum error mitigation is worth the cost
Source published
Shared keywords: quantum machine learning
Can quantum machine learning train without measurements?
Source published
Shared keywords: quantum machine learning