Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

IEEE Access

Simple Sentiment Analysis Ansatz for Sentiment Classification in Quantum Natural Language Processing

Fariska Zakhralativa Ruskanda, Muhammad Rifat Abiwardani, Infall Syafalni, Harashta Tatimma Larasati, Rahmat Mulyawan

Published Jan 1, 2023• 17 citations
Publisher

Abstract

Sentiment classification is a valuable application of natural language processing that has seen wide usage in optimizing business processes. This paper explores a novel implementation of sentiment analysis using the Variational Quantum Algorithms (VQA) framework. As ansatz choice determines model performance in VQA, this paper proposes an alternative ansatz for the sentiment classification task in quantum representation. Specifically, it builds upon previous work in quantum sentiment classification by proposing an alternative ansatz to the Instantaneous Quantum Polytime ansatz, entitled Simple Sentiment Analysis (SimpleSA) ansatz. A key feature of the SimpleSA ansatz is the decision to neglect noun parameterization. The proposed SimpleSA has less complexity than the other ansätze in terms of number of parameters and number of gates. Moreover, experimental results show that the SimpleSA ansatz with H-CNOT-Rz-H compound block construction outperforms the Instantaneous Quantum Polytime (IQP) ansatz at 85.00% accuracy. Furthermore, SimpleSA optimization converges 20.89% faster than Instantaneous Quantum Polytime (IQP) for the Simultaneous Perturbation Stochastic Approximation (SPSA) method with 130 iterations. The proposed work is useful for applications of quantum computers for sentiment analyses and classifications.

DOI
10.1109/access.2023.3327873

Related papers

Generalized Ansatz for High-Accuracy Quantum Sentiment Classification Using Variational Quantum Algorithm Scheme

Muhammad Rifat Abiwardani, Fariska Zakhralativa Ruskanda, Infall Syafalni +2 more

This paper investigates sentiment classification using QNLP within the Variational Quantum Algorithms (VQA) framework, which offers a practical approach for current hardware limitations by optimizing parameterized quantum circuits through classical computation. Designing an effective VQA ansatz is a key challenge because it directly influences the model’s expressiveness and trainability. To address this, a new ansatz called the GeneralQC ansatz is proposed by combining the preliminary SimpleSA ansatz with the circuit-centric quantum classifier, aiming to enhance performance by integrating the strengths of both methods. Three instantiations of the GeneralQC ansatz—H-CRx, Rx-CNOT, and Rx-CRz—are explored under the SimpleSA strategy of defining noun word boxes as fixed identity gates and are compared with both the baseline SimpleSA ansatz and versions with noun parameterization. The findings reveal that the Rx-CNOT and Rx-CRz models with non-parameterized nouns significantly outperform the SimpleSA ansatz, achieving an accuracy of 96.91%.

IEEE Access•Jan 1, 2025•1 citation

Experimentation on Various Sentiment Classification Models in Quantum Natural Language Processing

Muddada Muralikrishna, S Nandini, Hima Keerthi Sagiraju +2 more

Quantum computers has the capacity to enhance the speed of intricate calculations, achieve parallelism via superpositions, and effectively process vast amounts of data. In addition, the domain of natural language processing (NLP) is swiftly drawing the attention of academics and engineers that want to construct more extensive computational models for NLP. Hence, the use of quantum technology in NLP endeavours, particularly in sentiment categorization, has promising prospects for further advancement. In this research work, a detailed analysis of different sentiment classification methods are investigated that are interpreted with quantum computing models. To be precise the Quantum Long Short Term Memory (QLSTM) and Quantum Support Vector Machines (QSVM) are examined to determine the efficiency among the models. The results are simulated in Qiskit simulator and real time quantum computer Qiskit_ibm_osaka to evaluate the examined models. The results shows the significance of the experimentation and it is proven using Accuracy, precision and recall as performance metrices. On an average, in terms of accuracy the proposed model outperforms existing methods with 8.9%, On precision the proposed model outperforms 11.1% compared to existing methods. And with respect to recall the proposed model outperforms 6.7% compared to existing methods.

International Conference on Augmented Reality, Intelligent Systems, and Industrial Automation (ARIIA)•Dec 20, 2024•0 citations

SentiQNN: Advancing Sentiment Analysis through Quantum-Inspired Neural Networks- A Comparative Analysis with Existing Methodologies

Lateshwari, Sushil Kumar Bansal

This paper presents SentiQNN (Sentiment Quantum Neural Network), a novel quantum-inspired neural network architecture specifically designed for sentiment analysis tasks in natural language processing. SentiQNN leverages quantum computing principles including superposition, entanglement, and quantum measurement to enhance traditional neural network capabilities for text classification. The model incorporates complex-valued embeddings, quantum mixture operations, and multi-task learning with sentiment lexicon integration to achieve superior performance in sentiment classification tasks. Through extensive experimentation across multiple benchmark datasets, SentiQNN demonstrates state-of-the-art performance with 88.11% accuracy, outperforming traditional classical approaches by 3-7%. The architecture introduces innovative quantum state preparation layers, quantum circuit operations, and quantum measurement mechanisms specifically optimized for natural language understanding. Our comprehensive evaluation reveals that quantum-inspired approaches can significantly enhance sentiment analysis performance while maintaining computational efficiency. The findings contribute to the emerging field of quantum machine learning and provide a foundation for future research in quantum-enhanced natural language processing systems.

•Oct 27, 2025•0 citations

Enhancing Quantum NLP Robustness - Analysis on Noisy Models for Quantum Sentiment Classification

Fariska Zakhralativa Ruskanda, Michael Jonathan Halim, Farizki Kurniawan +3 more

This research aims to improve the robustness of Quantum Natural Language Processing (QNLP) models in the presence of noise. Using Lambeq, an open-source library for quantum NLP, we focus on sentiment classification tasks to eval-uate the impact of noisy quantum models. Our study involves the application of three types of optimizers: Simultaneous Perturbation Stochastic Approximation (SPSA), Nelder-Mead, and Adam. The performance and resilience of these optimizers are assessed under various noise conditions to determine their effectiveness in maintaining model accuracy and stability. The research shows that the Adam optimizer outperforms SPSA and NelderMead in QNLP simple sentiment analysis tasks, both in noiseless and noisy environments. Adam achieved 96.67 % accuracy in noiseless conditions, significantly higher than SPSA's 83.33 % and Nelder-Mead's 53.33%, highlighting its superior performance in optimizing quantum circuits. Moreover, in noisy simulation, Adam outperforms others with 70.00% accuracy performance. The work is useful for NLP implementations in quantum computers. This research is essential because the noisy nature of current quan-tum computers makes it difficult for QNLP models to perform accurately and reliably.

International Conference on Advanced Informatics: Concepts, Theory and Applications (ICAICTA)•Sep 28, 2024•2 citations

Quantum Natural Language Processing Based Sentiment Analysis Using Lambeq Toolkit

Srinjoy Ganguly, Sai Nandan Morapakula, Luis Miguel Pozo Coronado

Sentiment classification is one of the best use cases of classical natural language processing (NLP). We witness its power in various domains such as banking, business, and the marketing industry. We already know how classical AI and machine learning can change and improve technology. Quantum natural language processing (QNLP) is a young and gradually emerging technology that can provide a quantum advantage for NLP tasks. In this paper, we show the first application of QNLP for sentiment analysis and achieve perfect test set accuracy for three different kinds of simulations and decent accuracy for experiments run on a noisy quantum device. We utilize the lambeq QNLP toolkit and t|ket > by Cambridge Quantum (Quantinuum) to produce the results.

arXiv:2305.19383•International Conference on Power, Control and Computing Technologies (ICPC2T)•Mar 1, 2022•29 citations

Quantum-Enhanced Sentiment Analysis: Bridging NLP and Quantum Computing for Superior Text Classification

J Boopalamani, Pranav Raj S, Prasanna Kumar G

This research introduces a new paradigm for sentiment analysis on patient medication reviews through the application of quantum computing to improve machine learning models. A pre-existing dataset of medication reviews from the UCI Machine Learning repository was utilized, involving Quantum Natural Language Processing (QNLP) techniques, namely the application of quantum embeddings produced by quantum circuits to improve the performance of sentiment classification. Experimental findings indicate that improved models through quantum techniques, like the Quantum Random Forest, outperform conventional models in terms of accuracy and precision. These improvements are ascribed to quantum embeddings’ capacity to efficiently represent complex linguistic patterns in high-dimensional data. Additionally, the study uses robust validation techniques including performance benchmarking and cross-validation to guarantee reliability. Through a scalable and context-aware framework for natural language comprehension, this study highlights the revolutionary potential of QNLP in improving sentiment analysis in the healthcare industry.

International Conference on Intelligent Sustainable Systems (ICISS)•Mar 12, 2025•0 citations
Sentiment classification is a valuable application of natural language processing that has seen wide usage in optimizing business processes. This paper explores a novel implementation of sentiment analysis using the Variational Quantum Algorithms (VQA) framework. As ansatz choice determines model performance in VQA, this paper proposes an alternative ansatz for the sentiment classification task in quantum representation. Specifically, it builds upon previous work in quantum sentiment classification by proposing an alternative ansatz to the Instantaneous Quantum Polytime ansatz, entitled Simple Sentiment Analysis (SimpleSA) ansatz. A key feature of the SimpleSA ansatz is the decision to neglect noun parameterization. The proposed SimpleSA has less complexity than the other ansätze in terms of number of parameters and number of gates. Moreover, experimental results show that the SimpleSA ansatz with H-CNOT-Rz-H compound block construction outperforms the Instantaneous Quantum Polytime (IQP) ansatz at 85.00% accuracy. Furthermore, SimpleSA optimization converges 20.89% faster than Instantaneous Quantum Polytime (IQP) for the Simultaneous Perturbation Stochastic Approximation (SPSA) method with 130 iterations. The proposed work is useful for applications of quantum computers for sentiment analyses and classifications.
This paper investigates sentiment classification using QNLP within the Variational Quantum Algorithms (VQA) framework, which offers a practical approach for current hardware limitations by optimizing parameterized quantum circuits through classical computation. Designing an effective VQA ansatz is a key challenge because it directly influences the model’s expressiveness and trainability. To address this, a new ansatz called the GeneralQC ansatz is proposed by combining the preliminary SimpleSA ansatz with the circuit-centric quantum classifier, aiming to enhance performance by integrating the strengths of both methods. Three instantiations of the GeneralQC ansatz—H-CRx, Rx-CNOT, and Rx-CRz—are explored under the SimpleSA strategy of defining noun word boxes as fixed identity gates and are compared with both the baseline SimpleSA ansatz and versions with noun parameterization. The findings reveal that the Rx-CNOT and Rx-CRz models with non-parameterized nouns significantly outperform the SimpleSA ansatz, achieving an accuracy of 96.91%.
Quantum computers has the capacity to enhance the speed of intricate calculations, achieve parallelism via superpositions, and effectively process vast amounts of data. In addition, the domain of natural language processing (NLP) is swiftly drawing the attention of academics and engineers that want to construct more extensive computational models for NLP. Hence, the use of quantum technology in NLP endeavours, particularly in sentiment categorization, has promising prospects for further advancement. In this research work, a detailed analysis of different sentiment classification methods are investigated that are interpreted with quantum computing models. To be precise the Quantum Long Short Term Memory (QLSTM) and Quantum Support Vector Machines (QSVM) are examined to determine the efficiency among the models. The results are simulated in Qiskit simulator and real time quantum computer Qiskit_ibm_osaka to evaluate the examined models. The results shows the significance of the experimentation and it is proven using Accuracy, precision and recall as performance metrices. On an average, in terms of accuracy the proposed model outperforms existing methods with 8.9%, On precision the proposed model outperforms 11.1% compared to existing methods. And with respect to recall the proposed model outperforms 6.7% compared to existing methods.
This paper presents SentiQNN (Sentiment Quantum Neural Network), a novel quantum-inspired neural network architecture specifically designed for sentiment analysis tasks in natural language processing. SentiQNN leverages quantum computing principles including superposition, entanglement, and quantum measurement to enhance traditional neural network capabilities for text classification. The model incorporates complex-valued embeddings, quantum mixture operations, and multi-task learning with sentiment lexicon integration to achieve superior performance in sentiment classification tasks. Through extensive experimentation across multiple benchmark datasets, SentiQNN demonstrates state-of-the-art performance with 88.11% accuracy, outperforming traditional classical approaches by 3-7%. The architecture introduces innovative quantum state preparation layers, quantum circuit operations, and quantum measurement mechanisms specifically optimized for natural language understanding. Our comprehensive evaluation reveals that quantum-inspired approaches can significantly enhance sentiment analysis performance while maintaining computational efficiency. The findings contribute to the emerging field of quantum machine learning and provide a foundation for future research in quantum-enhanced natural language processing systems.
This research aims to improve the robustness of Quantum Natural Language Processing (QNLP) models in the presence of noise. Using Lambeq, an open-source library for quantum NLP, we focus on sentiment classification tasks to eval-uate the impact of noisy quantum models. Our study involves the application of three types of optimizers: Simultaneous Perturbation Stochastic Approximation (SPSA), Nelder-Mead, and Adam. The performance and resilience of these optimizers are assessed under various noise conditions to determine their effectiveness in maintaining model accuracy and stability. The research shows that the Adam optimizer outperforms SPSA and NelderMead in QNLP simple sentiment analysis tasks, both in noiseless and noisy environments. Adam achieved 96.67 % accuracy in noiseless conditions, significantly higher than SPSA's 83.33 % and Nelder-Mead's 53.33%, highlighting its superior performance in optimizing quantum circuits. Moreover, in noisy simulation, Adam outperforms others with 70.00% accuracy performance. The work is useful for NLP implementations in quantum computers. This research is essential because the noisy nature of current quan-tum computers makes it difficult for QNLP models to perform accurately and reliably.
Sentiment classification is one of the best use cases of classical natural language processing (NLP). We witness its power in various domains such as banking, business, and the marketing industry. We already know how classical AI and machine learning can change and improve technology. Quantum natural language processing (QNLP) is a young and gradually emerging technology that can provide a quantum advantage for NLP tasks. In this paper, we show the first application of QNLP for sentiment analysis and achieve perfect test set accuracy for three different kinds of simulations and decent accuracy for experiments run on a noisy quantum device. We utilize the lambeq QNLP toolkit and t|ket > by Cambridge Quantum (Quantinuum) to produce the results.
This research introduces a new paradigm for sentiment analysis on patient medication reviews through the application of quantum computing to improve machine learning models. A pre-existing dataset of medication reviews from the UCI Machine Learning repository was utilized, involving Quantum Natural Language Processing (QNLP) techniques, namely the application of quantum embeddings produced by quantum circuits to improve the performance of sentiment classification. Experimental findings indicate that improved models through quantum techniques, like the Quantum Random Forest, outperform conventional models in terms of accuracy and precision. These improvements are ascribed to quantum embeddings’ capacity to efficiently represent complex linguistic patterns in high-dimensional data. Additionally, the study uses robust validation techniques including performance benchmarking and cross-validation to guarantee reliability. Through a scalable and context-aware framework for natural language comprehension, this study highlights the revolutionary potential of QNLP in improving sentiment analysis in the healthcare industry.