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

Scientific Reports

Recurrent quantum embedding neural network and its application in vulnerability detection

Zhihui Song, Xin Zhou, Jinchen Xu, Xiaodong Ding, Zheng Shan

Published Jun 13, 2024• 7 citations
Publisher

Abstract

In recent years, deep learning has been widely used in vulnerability detection with remarkable results. These studies often apply natural language processing (NLP) technologies due to the natural similarity between code and language. Since NLP usually consumes a lot of computing resources, its combination with quantum computing is becoming a valuable research direction. In this paper, we present a Recurrent Quantum Embedding Neural Network (RQENN) for vulnerability detection. It aims to reduce the memory consumption of classical models for vulnerability detection tasks and improve the performance of quantum natural language processing (QNLP) methods. We show that the performance of RQENN achieves the above goals. Compared with the classic model, the space complexity of each stage of its execution is exponentially reduced, and the number of parameters used and the number of bits consumed are significantly reduced. Compared with other QNLP methods, RQENN uses fewer qubit resources and achieves a 15.7% higher accuracy in vulnerability detection.

DOI
10.1038/s41598-024-63021-y

Related papers

Quantum Natural Language Processing: A Comprehensive Review of Models, Methods, and Applications

Farha Nausheen, Khandakar Entenam Unayes Ahmed, Mumit Khan +1 more

In recent developments, deep learning methodologies applied to Natural Language Processing (NLP) have revealed a paradox: They improve performance but demand considerable data and resources for their training. Alternatively, quantum computing exploits the principles of quantum mechanics to overcome the computational limitations of current methodologies, thereby establishing an emerging field known as quantum natural language processing (QNLP). This domain holds the potential to attain a quantum advantage in the processing of linguistic structures, surpassing classical models in both efficiency and accuracy. In this paper, it is proposed to categorise QNLP models based on quantum computing principles, architecture, and computational approaches. This paper attempts to provide a survey on how quantum meets language by mapping state-of-the-art in this area, embracing quantum encoding techniques for classical data, QNLP models for prevalent NLP tasks, and quantum optimisation techniques for hyper parameter tuning. The landscape of quantum computing approaches applied to various NLP tasks is summarised by showcasing the specific QNLP methods used, and the popularity of these methods is indicated by their count. From the findings, it is observed that QNLP approaches are still limited to small data sets, with only a few models explored extensively, and there is increasing interest in the application of quantum computing to natural language processing tasks.

arXiv:2504.09909•Apr 14, 2025•15 citations

Hybrid Quantum-Classical NLP Framework for Emotion Recognition Tasks

Dharaniraj VM, Jayasuriya R, Sivasankaramoorthy R +2 more

This project aims at developing a comprehensive hybrid quantum-classical NLP pipeline to solve the task of emotion recognition. For emotion recognition, this work makes use of a hybrid Quantum Recurrent Neural Network (QRNN) by combining classical embedding layers with parameterized quantum circuits based on well defined ansatzes. The primary goal of the project is to train VQCs for capturing the emotion associated with sentences. This work aims at combining the strong embedding generation ability of classical architectures with the expressive power of Quantum circuits that can capture complex dependencies across sequences. The designed Hybrid QRNN model integrates two important aspects namely the strength of RNNs for sequential modelling and the representational power of quantum circuits resulting in competitive performance for emotion recognition task while also utilising the quantum benefits. The results reveal the potential of QNLP for advancing the intersection of Quantum Computing and Natural Language Processing for quantum-accelerated downstream NLP applications.

EPJ Web of Conferences•Jan 1, 2026•0 citations

Hybrid Quantum-Classical NLP Framework for Emotion Recognition Tasks

Dharaniraj VM, Jayasuriya R, Sivasankaramoorthy R +2 more

This project aims at developing a comprehensive hybrid quantum-classical NLP pipeline to solve the task of emotion recognition. For emotion recognition, this work makes use of a hybrid Quantum Recurrent Neural Network (QRNN) by combining classical embedding layers with parameterized quantum circuits based on well defined ansatzes. The primary goal of the project is to train VQCs for capturing the emotion associated with sentences. This work aims at combining the strong embedding generation ability of classical architectures with the expressive power of Quantum circuits that can capture complex dependencies across sequences. The designed Hybrid QRNN model integrates two important aspects namely the strength of RNNs for sequential modelling and the representational power of quantum circuits resulting in competitive performance for emotion recognition task while also utilising the quantum benefits. The results reveal the potential of QNLP for advancing the intersection of Quantum Computing and Natural Language Processing for quantum-accelerated downstream NLP applications.

•Mar 23, 2026•0 citations

Quantum Natural Language Processing: A Comprehensive Survey

Charles Varmantchaonala Moudina, Jean Louis Ebongue Kedieng Fendji, Julius Schöning +1 more

By using the quantum mechanics phenomenon, quantum computers provide a new dimension of computational power that drastically accelerates solving complex and resource-intensive problems. One of the most evolving but, due to the computation power of standard computers, reasonably limited application domain is natural language processing (NLP). NLP seeks to give interactive systems the ability to understand and manipulate human language. Making systems understand and manipulate human languages requires large amounts of data and computational power during learning as well as during the execution of NLP. For handling these amounts of data like text and audio recordings and the complexity of classical NLP algorithms, quantum computation has emerged as a promising solution. This work gives an extensive overview of this new field, known as quantum natural language processing (QNLP). Introducing the basics of quantum computing, we discuss its use in NLP by explaining the different proposed embedding models, quantum algorithms, and other methods of QNLP. As QNLP is still in its infancy, this comprehensive overview is the foundation that points to the upcoming research direction.

IEEE Access•Jan 1, 2024•31 citations

A new method of software vulnerability detection based on a quantum neural network

Xin Zhou, Jianmin Pang, Feng Yue +7 more

In the field of network security, although there has been related work on software vulnerability detection based on classic machine learning, detection ability is directly proportional to the scale of training data. A quantum neural network has been proven to solve the memory bottleneck problem of classical machine learning, so it has far-reaching prospects in the field of vulnerability detection. To fill the gap in this field, we propose a quantum neural network structure named QDENN for software vulnerability detection. This work is the first attempt to implement word embedding of vulnerability codes based on a quantum neural network, which proves the feasibility of a quantum neural network in the field of vulnerability detection. Experiments demonstrate that our proposed QDENN can effectively solve the inconsistent input length problem of quantum neural networks and the problem of batch processing with long sentences. Furthermore, it can give full play to the advantages of quantum computing and realize a vulnerability detection model at the cost of a small amount of measurement. Compared to other quantum neural networks, our proposed QDENN can achieve higher vulnerability detection accuracy. On the sub dataset with a small-scale interval, the model accuracy rate reaches 99%. On each subinterval data, the best average vulnerability detection accuracy of the model reaches 86.3%.

Scientific Reports•May 16, 2022•14 citations

Quantum Classifier for Natural Language Processing Applications

Shyambabu Pandey, Partha Pakray, Riyanka Manna

A deep neural network is a branch of machinelearning that is capable of learning and representingcomplex patterns from a dataset through interconnectedmultiple layers of neurons. This capability makes itapplicable in various fields, such as natural languageprocessing, image processing, and computer vision.Deep learning models show effective performance butface challenges such as complexity and resourcedemands. On the other hand, quantum machine learningalgorithms offer an alternative with potential efficiencycompared to their classical counterparts. This paperproposes a Quantum Recurrent Neural Network (QRNN)for natural language processing tasks, which classify textdata such as parts of speech, named entity recognition,and sentiment analysis. The proposed method utilizesparameterized quantum circuits that contain the tunableparameters. Our approach uses amplitude encodingto represent classical data into quantum states, partialmeasurement for label determination, and ancilla qubitsto transfer the information from the current state to thenext.

Computación y Sistemas•Jun 29, 2024•5 citations
In recent years, deep learning has been widely used in vulnerability detection with remarkable results. These studies often apply natural language processing (NLP) technologies due to the natural similarity between code and language. Since NLP usually consumes a lot of computing resources, its combination with quantum computing is becoming a valuable research direction. In this paper, we present a Recurrent Quantum Embedding Neural Network (RQENN) for vulnerability detection. It aims to reduce the memory consumption of classical models for vulnerability detection tasks and improve the performance of quantum natural language processing (QNLP) methods. We show that the performance of RQENN achieves the above goals. Compared with the classic model, the space complexity of each stage of its execution is exponentially reduced, and the number of parameters used and the number of bits consumed are significantly reduced. Compared with other QNLP methods, RQENN uses fewer qubit resources and achieves a 15.7% higher accuracy in vulnerability detection.
In recent developments, deep learning methodologies applied to Natural Language Processing (NLP) have revealed a paradox: They improve performance but demand considerable data and resources for their training. Alternatively, quantum computing exploits the principles of quantum mechanics to overcome the computational limitations of current methodologies, thereby establishing an emerging field known as quantum natural language processing (QNLP). This domain holds the potential to attain a quantum advantage in the processing of linguistic structures, surpassing classical models in both efficiency and accuracy. In this paper, it is proposed to categorise QNLP models based on quantum computing principles, architecture, and computational approaches. This paper attempts to provide a survey on how quantum meets language by mapping state-of-the-art in this area, embracing quantum encoding techniques for classical data, QNLP models for prevalent NLP tasks, and quantum optimisation techniques for hyper parameter tuning. The landscape of quantum computing approaches applied to various NLP tasks is summarised by showcasing the specific QNLP methods used, and the popularity of these methods is indicated by their count. From the findings, it is observed that QNLP approaches are still limited to small data sets, with only a few models explored extensively, and there is increasing interest in the application of quantum computing to natural language processing tasks.
This project aims at developing a comprehensive hybrid quantum-classical NLP pipeline to solve the task of emotion recognition. For emotion recognition, this work makes use of a hybrid Quantum Recurrent Neural Network (QRNN) by combining classical embedding layers with parameterized quantum circuits based on well defined ansatzes. The primary goal of the project is to train VQCs for capturing the emotion associated with sentences. This work aims at combining the strong embedding generation ability of classical architectures with the expressive power of Quantum circuits that can capture complex dependencies across sequences. The designed Hybrid QRNN model integrates two important aspects namely the strength of RNNs for sequential modelling and the representational power of quantum circuits resulting in competitive performance for emotion recognition task while also utilising the quantum benefits. The results reveal the potential of QNLP for advancing the intersection of Quantum Computing and Natural Language Processing for quantum-accelerated downstream NLP applications.
This project aims at developing a comprehensive hybrid quantum-classical NLP pipeline to solve the task of emotion recognition. For emotion recognition, this work makes use of a hybrid Quantum Recurrent Neural Network (QRNN) by combining classical embedding layers with parameterized quantum circuits based on well defined ansatzes. The primary goal of the project is to train VQCs for capturing the emotion associated with sentences. This work aims at combining the strong embedding generation ability of classical architectures with the expressive power of Quantum circuits that can capture complex dependencies across sequences. The designed Hybrid QRNN model integrates two important aspects namely the strength of RNNs for sequential modelling and the representational power of quantum circuits resulting in competitive performance for emotion recognition task while also utilising the quantum benefits. The results reveal the potential of QNLP for advancing the intersection of Quantum Computing and Natural Language Processing for quantum-accelerated downstream NLP applications.
By using the quantum mechanics phenomenon, quantum computers provide a new dimension of computational power that drastically accelerates solving complex and resource-intensive problems. One of the most evolving but, due to the computation power of standard computers, reasonably limited application domain is natural language processing (NLP). NLP seeks to give interactive systems the ability to understand and manipulate human language. Making systems understand and manipulate human languages requires large amounts of data and computational power during learning as well as during the execution of NLP. For handling these amounts of data like text and audio recordings and the complexity of classical NLP algorithms, quantum computation has emerged as a promising solution. This work gives an extensive overview of this new field, known as quantum natural language processing (QNLP). Introducing the basics of quantum computing, we discuss its use in NLP by explaining the different proposed embedding models, quantum algorithms, and other methods of QNLP. As QNLP is still in its infancy, this comprehensive overview is the foundation that points to the upcoming research direction.
In the field of network security, although there has been related work on software vulnerability detection based on classic machine learning, detection ability is directly proportional to the scale of training data. A quantum neural network has been proven to solve the memory bottleneck problem of classical machine learning, so it has far-reaching prospects in the field of vulnerability detection. To fill the gap in this field, we propose a quantum neural network structure named QDENN for software vulnerability detection. This work is the first attempt to implement word embedding of vulnerability codes based on a quantum neural network, which proves the feasibility of a quantum neural network in the field of vulnerability detection. Experiments demonstrate that our proposed QDENN can effectively solve the inconsistent input length problem of quantum neural networks and the problem of batch processing with long sentences. Furthermore, it can give full play to the advantages of quantum computing and realize a vulnerability detection model at the cost of a small amount of measurement. Compared to other quantum neural networks, our proposed QDENN can achieve higher vulnerability detection accuracy. On the sub dataset with a small-scale interval, the model accuracy rate reaches 99%. On each subinterval data, the best average vulnerability detection accuracy of the model reaches 86.3%.
A deep neural network is a branch of machinelearning that is capable of learning and representingcomplex patterns from a dataset through interconnectedmultiple layers of neurons. This capability makes itapplicable in various fields, such as natural languageprocessing, image processing, and computer vision.Deep learning models show effective performance butface challenges such as complexity and resourcedemands. On the other hand, quantum machine learningalgorithms offer an alternative with potential efficiencycompared to their classical counterparts. This paperproposes a Quantum Recurrent Neural Network (QRNN)for natural language processing tasks, which classify textdata such as parts of speech, named entity recognition,and sentiment analysis. The proposed method utilizesparameterized quantum circuits that contain the tunableparameters. Our approach uses amplitude encodingto represent classical data into quantum states, partialmeasurement for label determination, and ancilla qubitsto transfer the information from the current state to thenext.