arXiv Science⌕ Search

arXiv subjects

Maha A. Metawei

Publications and source records attributed to Maha A. Metawei.

2 recordsLinked to original sources

A Hybrid Deep Learning and Variational Quantum Circuit Approach for TREC Question Classification

We investigate the feasibility and computational cost of a hybrid quantum-classical pipeline combining a convolutional neural network (CNN) with a variational quantum circuit (VQC) for binary classification of description (DESC) and human (HUM) questions in the TREC dataset. Trainable word embeddings and convolutional layers extract features, which are projected onto four rotation angles and processed by a simulated four-qubit circuit. A classical control replaces the circuit with a linear layer. The models were evaluated on a balanced subset of 174 training and 44 test questions obtained by pooling and re-splitting the official TREC files. Test questions were restricted to vocabulary present in the training set, limiting comparability with the official test split. After 20 epochs with a single random seed, the hybrid model using Aer GPU simulation achieved 97.73% accuracy (43/44), compared with 95.45% (42/44) for the classical control. The small test set, single-seed evaluation and different training conditions preclude attribution of an accuracy advantage to the quantum layer. Training required 10,127 seconds for the Aer GPU configuration and 1.3 seconds for the classical control. These timings are configuration-dependent and do not establish an intrinsic computational cost of the hybrid architecture. Repeated parameter-shift evaluations likely contributed to the overhead, although further profiling is needed. The results demonstrate the feasibility of the approach under simulation while highlighting its computational limitations.

quant-ph↗

Hybrid Quantum-Classical NLP Classification with Compact Semantic Representations: An Experimental Analysis of Representation Compression

Large language and sentence-embedding models provide rich semantic representations, but their high dimensionality poses a challenge for near-term quantum machine learning (QML), where quantum circuits can process only a limited number of input features. We investigate a hybrid quantum-classical pipeline that transforms high-dimensional sentence embeddings into compact representations for variational quantum classification. The workflow combines a pretrained sentence-embedding model, dimensionality reduction, angle encoding, a variational quantum circuit (VQC), and a classical decision layer. We systematically compare principal component analysis (PCA), neighborhood components analysis (NCA), and linear discriminant analysis (LDA), covering both unsupervised and supervised dimensionality reduction. Using the TREC question-classification dataset, we study the relationship between representation dimensionality, information retention, qubit count, and classification performance. Preliminary PCA experiments reveal a strong information bottleneck: reducing 768-dimensional embeddings to 3, 4, 5, and 8 dimensions retains about 8.2%, 10.2%, 11.9%, and 16.4% of the variance, with corresponding classification accuracies of 50.3%, 51.2%, 57.9%, and 63.4%. In contrast, supervised reduction is substantially more efficient. LDA reaches 85.3% accuracy and NCA reaches 83.1% using only 5 dimensions, under a leakage-free cross-validation protocol, compared with 85.1% for a full 384-dimensional classical baseline. These results indicate that supervised dimensionality reduction can preserve task-relevant information far more effectively than variance-based compression, making compact representations a promising route toward practical hybrid quantum-classical NLP models.

cs.LG↗