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

Applied Sciences

Hybrid Quantum–Classical Deep Neural Networks Based Smart Contract Vulnerability Detection

Sinan Durgut, Ecir Uğur Küçüksille, Mahmut Tokmak

Published Apr 7, 2025• 5 citations
Publisher

Abstract

The increasing adoption of blockchain technology has presented significant challenges in maintaining the security and reliability of smart contracts. This study addresses the problem of identifying security flaws in smart contracts, which may result in monetary damages and diminished confidence in blockchain systems. A Hybrid Quantum–Classical Deep Neural Network (HQCDNN) approach was proposed, combining quantum computing principles with classical deep learning methods to identify various vulnerability types, including access control, arithmetic, front-running, reentrancy, time manipulation, denial of service, and unchecked low calls. The SmartBugs Wild Dataset was used for training, with TF-IDF employed as a preprocessing technique optimized for hybrid architectures. Experiments were conducted using hybrid architectures with 2-qubit and 4-qubit quantum layers, alongside a classical deep neural network (DNN) model for comparative analysis. The HQCDNN model attained accuracy levels ranging from 96.4% to 78.2% and F1-scores between 96.6% and 80.2%, showcasing enhanced performance compared to the classical and deep learning models referenced in the literature. These results highlight the capability of HQCDNNs to improve the identification of security flaws in smart contracts. Future work could focus on evaluating the model on actual quantum devices and expanding its application to larger datasets for further validation.

DOI
10.3390/app15074037

Related papers

Comparative Analysis of Hybrid Quantum-Classical and Artificial Neural Network for Sustainable Cyber-Physical Power System Anomaly Detection

Lloyd Aldrin T. PORNOBI

Abstract. Smart grid infrastructures are becoming increasingly vulnerable to a range of physical and cyber-physical faults that can result in outages, equipment damage, and safety hazards. This paper presents a comparative evaluation of a hybrid quantum-classical neural network (HQNN) against a classical artificial neural network (ANN) for binary fault detection in a simulated smart-grid environment. Both models are trained and tested on a 4,965-sample dataset derived from a power-system simulator jointly developed by Mississippi State University and Oak Ridge National Laboratory. We encode input features into quantum states using Hadamard and RY rotations, employ entangling layers in PennyLane, and fuse the resulting quantum expectation values with classical fully connected layers. The ANN baseline, in contrast, utilizes two ReLU-activated hidden layers and dropout. Performance is measured in terms of precision, recall, F1-score, ROC AUC, and CPU-only inference latency, with 5-fold cross-validation implemented. Results show that the HQNN got a higher ROC AUC (0.7565 vs. 0.6763), higher precision (80% vs. 69%), recall (61% vs. 54%), and F1-Score (65% vs. 58%), while the ANN achieves a lower average inference time that runs almost 65x faster per sample. These findings demonstrate that hybrid quantum-classical models can enhance discriminative power for sustainable, low-power smart-grid fault detection, even in resource-limited settings, at the cost of slightly increased inference time.

Materials research proceedings•Jan 1, 2026•0 citations

A Framework for Hybrid-Quantum Neural Networks for Anomaly Detection and Optimization in Smart Grids: Challenges and Opportunities

Irene Kahvazadeh, A.C. Fong, Guan Hong

With increasing prevalence of distributed energy resources (DERs), the growing threat of cyber-physical attacks, and the need for real-time optimization present major challenges for modern smart grids. With challenges also come opportunities. Although classical machine learning (ML) models, such as deep neural networks (DNNs), have shown promise toward meeting some of these challenges, they often struggle with the computational complexity when vast volumes of grid data are involved. The problems are particularly acute in situations when real-time responses are essential. This paper proposes a framework that integrates classical and quantum neural networks (QNNs) to initiate a new paradigm of time-sensitive grid management. We explore the potential of quantum computing to enhance the capabilities of classical neural networks in two critical applications: (1) real-time anomaly detection for cybersecurity and (2) dynamic optimal power flow (OPF) management for grid stability. We propose a hybrid quantum-classical neural network framework suitable for near-term quantum devices, discuss the theoretical advantages in computational speed and model capacity, and address the significant challenges related to quantum hardware noise, algorithmic design, and data encoding. The framework is flexible enough to allow for futureproofing as QNNs and quantum computing hardware continue to evolve. Our analysis suggests that QNNs, even in their current nascent stage, hold great promise to revolutionize smart grid analytics by solving complex, time-sensitive classification and optimization problems that are currently difficult or intractable for classical methods. The study therefore lays the groundwork for a future smart grid that is more secure, efficient, and robust.

Asia-Pacific Power and Energy Engineering Conference (APPEEC)•Dec 2, 2025•0 citations

QShield: Securing Neural Networks Against Adversarial Attacks using Quantum Circuits

Navid Azimi, Aditya Prakash, Yao Wang +1 more

Deep neural networks remain highly vulnerable to adversarial perturbations, limiting their reliability in security- and safety-critical applications. To address this challenge, we introduce QShield, a modular hybrid quantum-classical neural network (HQCNN) architecture designed to enhance the adversarial robustness of classical deep learning models. QShield integrates a conventional convolutional neural network (CNN) backbone for feature extraction with a quantum processing module that encodes the extracted features into quantum states, applies structured entanglement operations under realistic noise models, and outputs a hybrid prediction through a dynamically weighted fusion mechanism implemented via a lightweight multilayer perceptron (MLP). We systematically evaluate both classical and hybrid quantum-classical models on the MNIST, OrganAMNIST, and CIFAR-10 datasets, using a comprehensive set of robustness, efficiency, and computational performance metrics. Our results demonstrate that classical models are highly vulnerable to adversarial attacks, whereas the proposed hybrid models with entanglement patterns maintain high predictive accuracy while substantially reducing attack success rates across a wide range of adversarial attacks. Furthermore, the proposed hybrid architecture significantly increased the computational cost required to generate adversarial examples, thereby introducing an additional layer of defense. These findings indicate that the proposed modular hybrid architecture achieves a practical balance between predictive accuracy and adversarial robustness, positioning it as a promising approach for secure and reliable machine learning in sensitive and safety-critical applications.

cs.CRCross-listedarXiv:2604.10933•Apr 14, 2026•0 citations

Beyond Classical AI: Detecting Fake News with Hybrid Quantum Neural Networks

Volkan Altıntaş

The advent of quantum computing has introduced new opportunities for enhancing classical machine learning architectures. In this study, we propose a novel hybrid model, the HQDNN (Hybrid Quantum–Deep Neural Network), designed for the automatic detection of fake news. The model integrates classical fully connected neural layers with a parameterized quantum circuit, enabling the processing of textual data within both classical and quantum computational domains. To assess its effectiveness, we conducted experiments on the widely used LIAR dataset utilizing Term Frequency–Inverse Document Frequency (TF-IDF) features, as well as transformer-based DistilBERT embeddings. The experimental results demonstrate that the HQDNN achieves a superior recall performance—92.58% with TF-IDF and 94.40% with DistilBERT—surpassing traditional machine learning models such as Logistic Regression, Linear SVM, and Multilayer Perceptron. Additionally, we compare the HQDNN with SetFit, a recent CPU-efficient few-shot transformer model, and show that while SetFit achieves higher precision, the HQDNN significantly outperforms it in recall. Furthermore, an ablation experiment confirms the critical contribution of the quantum component, revealing a substantial drop in performance when the quantum layer is removed. These findings highlight the potential of hybrid quantum–classical models as effective and compact alternatives for high-sensitivity classification tasks, particularly in domains such as fake news detection.

Applied Sciences•Jul 25, 2025•4 citations

Quantum Deep Neural Network Based Classification of Attack Vectors on the Ethereum Blockchain

Anand Singh Rajawat, S. B. Goyal, Manoj Kumar +1 more

INTRODUCTION: The implementation of robust security protocols is imperative in light of the exponential growth of blockchain-based platforms such as Ethereum. The importance of developing more effective strategies to detect and counter potential attacks is growing in tandem with the sophistication of the methods employed by attackers. In this study, we present a novel approach that leverages quantum computing to identify and predict attack vectors on the Ethereum blockchain. OBJECTIVES: The primary objective of this study is to suggest an innovative methodology for enhancing the security of Ethereum by leveraging quantum computing. The purpose of this study is to demonstrate that QRBM and QDN are efficient in identifying and predicting security flaws in blockchain transactions. METHODS: We combined methods from quantum computing with social network research approaches. An enormous dataset containing both genuine Ethereum transactions and a carefully chosen spectrum of malicious activity indicative of popular attack vectors was used to train our model, the QRBM. Thanks to the dataset, the QRBM was able to learn to distinguish between typical and out-of-the-ordinary activities. RESULTS: In comparison to more conventional deep learning models, the QRBM showed substantially better accuracy when it came to identifying transaction behaviours. The model's improved scalability and efficiency were made possible by its quantum nature, which is defined by features like entanglement and superposition. Specifically, the QRBM handled non-informative inputs better and solved problems faster. CONCLUSION: This study paves the way for further investigation into quantum-enhanced cybersecurity measures and highlights the promise of quantum neural networks in strengthening the security of blockchain technology. According to our research, quantum computing has the potential to be an essential tool in creating Ethereum-style blockchain security systems that are more advanced, efficient, and resilient.

ICST Transactions on Scalable Information Systems•Mar 27, 2024•1 citation

Quantum-enhanced deep learning models for automated defect detection in materials

Aniket Garg, Snehal Sushibine, Diya Choudhuri +6 more

The quality of raw materials is fundamental to the reliability and overall performance of final products, serving as the cornerstone of modern manufacturing standards. While traditional inspection methods can be effective, they are frequently time-consuming, labor-intensive, and unsuitable for high-throughput production environments. Recent advances in quantum computing offer significant advantages for processing large-scale data and complex feature representations, with strong potential to address the limitations of traditional inspection techniques. This study introduces an automated approach for grading raw materials, such as steel and fabric, which are widely used in industries including automotive, textiles, and general manufacturing, by integrating deep learning with quantum machine learning. A Hybrid Quantum Classical Neural Network (HQCNN) is proposed to enhance defect detection. The HQCNN utilizes a fine-tuned ResNet-18 backbone for robust feature extraction. Extracted features are used by a trainable depth controller that determines the complexity of a six-qubit variational quantum circuit (VQC) with data-adaptive, dynamic depth. Each VQC layer consists of rotations around the Y -axis (RY) and Z -axis (RZ), combined with Controlled-NOT (CNOT) gates arranged in a ring topology, with the total number of layers determined on a per-sample basis. The model is trained using a resource-aware loss function that penalizes excessive circuit depth, and the resulting quantum features are fused with classical features for final classification. Comprehensive ablation studies comparing the HQCNN against parameter-matched classical multi-layer perceptrons (MLPs) and fixed-depth quantum circuits demonstrate the fundamental advantage of the proposed approach. The dynamic HQCNN achieves 88.1 ± 2.4% accuracy on the complex metal surface defect dataset and 93.0 ± 1.8% on the fabric defects dataset. More importantly, it yields a statistically significant improvement in the macro F1-score (from 0.79 in classical parameter-matched baselines to 0.87), proving its superior capability in recognizing complex, minority-class defects while utilizing a fraction of the trainable parameters in the classification head compared to traditional architectures.

Frontiers in Artificial Intelligence•Aug 20, 2026•0 citations
The increasing adoption of blockchain technology has presented significant challenges in maintaining the security and reliability of smart contracts. This study addresses the problem of identifying security flaws in smart contracts, which may result in monetary damages and diminished confidence in blockchain systems. A Hybrid Quantum–Classical Deep Neural Network (HQCDNN) approach was proposed, combining quantum computing principles with classical deep learning methods to identify various vulnerability types, including access control, arithmetic, front-running, reentrancy, time manipulation, denial of service, and unchecked low calls. The SmartBugs Wild Dataset was used for training, with TF-IDF employed as a preprocessing technique optimized for hybrid architectures. Experiments were conducted using hybrid architectures with 2-qubit and 4-qubit quantum layers, alongside a classical deep neural network (DNN) model for comparative analysis. The HQCDNN model attained accuracy levels ranging from 96.4% to 78.2% and F1-scores between 96.6% and 80.2%, showcasing enhanced performance compared to the classical and deep learning models referenced in the literature. These results highlight the capability of HQCDNNs to improve the identification of security flaws in smart contracts. Future work could focus on evaluating the model on actual quantum devices and expanding its application to larger datasets for further validation.
Abstract. Smart grid infrastructures are becoming increasingly vulnerable to a range of physical and cyber-physical faults that can result in outages, equipment damage, and safety hazards. This paper presents a comparative evaluation of a hybrid quantum-classical neural network (HQNN) against a classical artificial neural network (ANN) for binary fault detection in a simulated smart-grid environment. Both models are trained and tested on a 4,965-sample dataset derived from a power-system simulator jointly developed by Mississippi State University and Oak Ridge National Laboratory. We encode input features into quantum states using Hadamard and RY rotations, employ entangling layers in PennyLane, and fuse the resulting quantum expectation values with classical fully connected layers. The ANN baseline, in contrast, utilizes two ReLU-activated hidden layers and dropout. Performance is measured in terms of precision, recall, F1-score, ROC AUC, and CPU-only inference latency, with 5-fold cross-validation implemented. Results show that the HQNN got a higher ROC AUC (0.7565 vs. 0.6763), higher precision (80% vs. 69%), recall (61% vs. 54%), and F1-Score (65% vs. 58%), while the ANN achieves a lower average inference time that runs almost 65x faster per sample. These findings demonstrate that hybrid quantum-classical models can enhance discriminative power for sustainable, low-power smart-grid fault detection, even in resource-limited settings, at the cost of slightly increased inference time.
With increasing prevalence of distributed energy resources (DERs), the growing threat of cyber-physical attacks, and the need for real-time optimization present major challenges for modern smart grids. With challenges also come opportunities. Although classical machine learning (ML) models, such as deep neural networks (DNNs), have shown promise toward meeting some of these challenges, they often struggle with the computational complexity when vast volumes of grid data are involved. The problems are particularly acute in situations when real-time responses are essential. This paper proposes a framework that integrates classical and quantum neural networks (QNNs) to initiate a new paradigm of time-sensitive grid management. We explore the potential of quantum computing to enhance the capabilities of classical neural networks in two critical applications: (1) real-time anomaly detection for cybersecurity and (2) dynamic optimal power flow (OPF) management for grid stability. We propose a hybrid quantum-classical neural network framework suitable for near-term quantum devices, discuss the theoretical advantages in computational speed and model capacity, and address the significant challenges related to quantum hardware noise, algorithmic design, and data encoding. The framework is flexible enough to allow for futureproofing as QNNs and quantum computing hardware continue to evolve. Our analysis suggests that QNNs, even in their current nascent stage, hold great promise to revolutionize smart grid analytics by solving complex, time-sensitive classification and optimization problems that are currently difficult or intractable for classical methods. The study therefore lays the groundwork for a future smart grid that is more secure, efficient, and robust.
Deep neural networks remain highly vulnerable to adversarial perturbations, limiting their reliability in security- and safety-critical applications. To address this challenge, we introduce QShield, a modular hybrid quantum-classical neural network (HQCNN) architecture designed to enhance the adversarial robustness of classical deep learning models. QShield integrates a conventional convolutional neural network (CNN) backbone for feature extraction with a quantum processing module that encodes the extracted features into quantum states, applies structured entanglement operations under realistic noise models, and outputs a hybrid prediction through a dynamically weighted fusion mechanism implemented via a lightweight multilayer perceptron (MLP). We systematically evaluate both classical and hybrid quantum-classical models on the MNIST, OrganAMNIST, and CIFAR-10 datasets, using a comprehensive set of robustness, efficiency, and computational performance metrics. Our results demonstrate that classical models are highly vulnerable to adversarial attacks, whereas the proposed hybrid models with entanglement patterns maintain high predictive accuracy while substantially reducing attack success rates across a wide range of adversarial attacks. Furthermore, the proposed hybrid architecture significantly increased the computational cost required to generate adversarial examples, thereby introducing an additional layer of defense. These findings indicate that the proposed modular hybrid architecture achieves a practical balance between predictive accuracy and adversarial robustness, positioning it as a promising approach for secure and reliable machine learning in sensitive and safety-critical applications.
The advent of quantum computing has introduced new opportunities for enhancing classical machine learning architectures. In this study, we propose a novel hybrid model, the HQDNN (Hybrid Quantum–Deep Neural Network), designed for the automatic detection of fake news. The model integrates classical fully connected neural layers with a parameterized quantum circuit, enabling the processing of textual data within both classical and quantum computational domains. To assess its effectiveness, we conducted experiments on the widely used LIAR dataset utilizing Term Frequency–Inverse Document Frequency (TF-IDF) features, as well as transformer-based DistilBERT embeddings. The experimental results demonstrate that the HQDNN achieves a superior recall performance—92.58% with TF-IDF and 94.40% with DistilBERT—surpassing traditional machine learning models such as Logistic Regression, Linear SVM, and Multilayer Perceptron. Additionally, we compare the HQDNN with SetFit, a recent CPU-efficient few-shot transformer model, and show that while SetFit achieves higher precision, the HQDNN significantly outperforms it in recall. Furthermore, an ablation experiment confirms the critical contribution of the quantum component, revealing a substantial drop in performance when the quantum layer is removed. These findings highlight the potential of hybrid quantum–classical models as effective and compact alternatives for high-sensitivity classification tasks, particularly in domains such as fake news detection.
INTRODUCTION: The implementation of robust security protocols is imperative in light of the exponential growth of blockchain-based platforms such as Ethereum. The importance of developing more effective strategies to detect and counter potential attacks is growing in tandem with the sophistication of the methods employed by attackers. In this study, we present a novel approach that leverages quantum computing to identify and predict attack vectors on the Ethereum blockchain. OBJECTIVES: The primary objective of this study is to suggest an innovative methodology for enhancing the security of Ethereum by leveraging quantum computing. The purpose of this study is to demonstrate that QRBM and QDN are efficient in identifying and predicting security flaws in blockchain transactions. METHODS: We combined methods from quantum computing with social network research approaches. An enormous dataset containing both genuine Ethereum transactions and a carefully chosen spectrum of malicious activity indicative of popular attack vectors was used to train our model, the QRBM. Thanks to the dataset, the QRBM was able to learn to distinguish between typical and out-of-the-ordinary activities. RESULTS: In comparison to more conventional deep learning models, the QRBM showed substantially better accuracy when it came to identifying transaction behaviours. The model's improved scalability and efficiency were made possible by its quantum nature, which is defined by features like entanglement and superposition. Specifically, the QRBM handled non-informative inputs better and solved problems faster. CONCLUSION: This study paves the way for further investigation into quantum-enhanced cybersecurity measures and highlights the promise of quantum neural networks in strengthening the security of blockchain technology. According to our research, quantum computing has the potential to be an essential tool in creating Ethereum-style blockchain security systems that are more advanced, efficient, and resilient.
The quality of raw materials is fundamental to the reliability and overall performance of final products, serving as the cornerstone of modern manufacturing standards. While traditional inspection methods can be effective, they are frequently time-consuming, labor-intensive, and unsuitable for high-throughput production environments. Recent advances in quantum computing offer significant advantages for processing large-scale data and complex feature representations, with strong potential to address the limitations of traditional inspection techniques. This study introduces an automated approach for grading raw materials, such as steel and fabric, which are widely used in industries including automotive, textiles, and general manufacturing, by integrating deep learning with quantum machine learning. A Hybrid Quantum Classical Neural Network (HQCNN) is proposed to enhance defect detection. The HQCNN utilizes a fine-tuned ResNet-18 backbone for robust feature extraction. Extracted features are used by a trainable depth controller that determines the complexity of a six-qubit variational quantum circuit (VQC) with data-adaptive, dynamic depth. Each VQC layer consists of rotations around the Y -axis (RY) and Z -axis (RZ), combined with Controlled-NOT (CNOT) gates arranged in a ring topology, with the total number of layers determined on a per-sample basis. The model is trained using a resource-aware loss function that penalizes excessive circuit depth, and the resulting quantum features are fused with classical features for final classification. Comprehensive ablation studies comparing the HQCNN against parameter-matched classical multi-layer perceptrons (MLPs) and fixed-depth quantum circuits demonstrate the fundamental advantage of the proposed approach. The dynamic HQCNN achieves 88.1 ± 2.4% accuracy on the complex metal surface defect dataset and 93.0 ± 1.8% on the fabric defects dataset. More importantly, it yields a statistically significant improvement in the macro F1-score (from 0.79 in classical parameter-matched baselines to 0.87), proving its superior capability in recognizing complex, minority-class defects while utilizing a fraction of the trainable parameters in the classification head compared to traditional architectures.