What Does It Cost to Simulate a Quantum Sentence Classifier? An Energy and Compute Perspective on Near-Term QNLP
Abstract
Near-term quantum natural language processing (QNLP) experiments often run on classical simulators, so simulator cost is part of the field's practical compute burden, yet accuracy tables do not show it. We measure that cost for a variational quantum classifier (VQC) on binary SST-2 sentiment classification, using PennyLane's state-vector simulator over a controlled grid of 27 configurations: three balanced training-set sizes (N = 200, 500, 1000), three qubit counts (4, 6, 8), and three circuit depths. Each VQC is compared with logistic regression on the same PCA-reduced input; full TF-IDF logistic regression gives an uncompressed reference. The VQC beats its matched baseline in 6 of 27 single-seed comparisons. After reruns at two further seeds, only 1 of these 6 keeps a positive mean advantage larger than its paired seed-to-seed variability, and paired tests on the fixed validation set do not establish it. VQC training is 886-21,127 times slower in measured wall-clock time than the matched classical fit (median 3,158 times); going from 4 to 8 qubits roughly doubles simulator time, and within the tested range per-step cost is well approximated by a linear function of the parameter count. CodeCarbon energy and CO2 estimates are secondary: they imply an almost constant power of about 41 W, so they add little beyond runtime, and we do not build an energy ratio from them. The study is narrow (one dataset, representation, ansatz, simulator, and CPU environment) and is a reproducible feasibility measurement, not a general verdict on QNLP.
Create a lesson
Metadata
- Categories
- quant-ph, cs.CL, cs.LG
- Comments
- 11 pages, 4 figures
Related papers
Compact Models of Charge and Spin Qubits for Quantum Computing and Hybrid Quantum-Classical Microwave Circuit Simulations
Shared title terminologyquant-phLorenzo Peri, Alberto Gomez-Saiz, M. Fernando Gonzalez-Zalba
Efficiently computable bounds on the energy-constrained quantum reading capacity
Shared title terminologyquant-phVishal Singh, Zixin Huang, Mark M. Wilde
Resource-efficient quantum simulation of (2+1)-dimensional Z_d lattice gauge theory using qudits
Shared title terminologyquant-phSamuel Godwood, Doğa Murat Kürkçüoğlu, Gabriel N. Perdue et al.
Real-time decoding of quantum kirigami for fast computation with a high-rate code
Shared title terminologyquant-phNatalie C. Brown, Elijah Durso-Sabina, David T. Stephen et al.
A Variational Lattice Boltzmann Approach to Quantum Computational Fluid Dynamics: Platform, Error Budget, and Verification
Shared title terminologyquant-phMadhava Syamlal, Carter Copen, Prakash Saini et al.
On Benchmarking Quantum Algorithms Without Quantum Computers
Shared title terminologyquant-phVedran Dunjko