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.
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.
Artificial intelligence (AI) and Quantum Computing are two rapidly advancing technological areas, which can present new opportunities for designing intelligent systems with the ability to perform adaptive learning, especially when considering real-time applications that require significant computational capacity. With the advent of hybrid quantum–classical deep learning models: a completely new paradigm that combines well performing classical neural networks with computational advantages given by quantum mechanics phenomena such as superposition, entanglement and parallelism into one model type—models strong on both supervised a unsupervised tasks. Abstract here, we address architectural design, optimization methods and real-time implementation of hybrid quantum– classical systems. Quantum circuits learn all the feature representations and speed up calculations which, in real-time under classical computation will become frustratingly intensive, however, deep learning frameworks scale up using computing resources running independently of quantum processes. It investigates novel hybrid architectures including, e.g., Variational quantum circuits and deep neural networks hybrids and evaluates implemented applications of the new ones for intelligent real-time systems as e.g. autonomous vehicles or smart healthcare monitors as well industrial automations from now until at least October 2023. Novel approaches like quantum-informed training techniques and hybrid optimizers are effectively solving major problems in the industry including noise due to quantum hardware, data encoding constraints, and scalability limitations. Moreover, it designs a novel latency-aware hybrid learning framework to ensure effective decision-making within time-sensitive situations. It has been shown by both experimental evidence and theoretical analysis that purely classical approaches can be outperformed in hybrid models, particularly for high-dimensional data problems that require complex optimization. Lastly, integrated with quantum fault-tolerant computing and adaptive hybrid learning ecosystems, some future directions are laid as conclusions in the end of research.
There is a pressing need for anomaly detection algorithms that can handle large amounts of diverse traffic data due to the quick growth of networked systems and the sophistication of contemporary cyberattacks. Despite the widespread use of conventional machine learning techniques for network intrusion detection, feature representation constraints, dataset imbalance, and the computational expense of scaling to vast problem spaces sometimes restrict their efficacy. In the meantime, new developments in quantum-assisted computation have opened up exciting possibilities for using quantum state changes to improve the feature learning process. Using the NF-UNSWNB15-v2 benchmark, this research presents HybridQCNN, a unique quantum-classical computing framework for binary classification of network traffic.The proposed architecture combines standard preprocessing techniques with an 8-qubit Parameterized Quantum Circuit (PQC) featuring multiple variational layers, where IsingXX and IsingYY entangling operations are applied to encode interfeature correlations, and a subsequent fully connected classical layer handles the final binary decision. A rigorous leakage-free data partitioning protocol was enforced, ensuring that all preprocessing transformations—including feature encoding, normalization, and threshold computation—were derived exclusively from the training subset, thereby preventing any information leakage from held-out partitions during evaluation. Experimental validation on a class-balanced subset of 60,000 traffic records yielded a classification accuracy of 97.33%, an F1-score of 0.9730, and a malicious traffic detection precision of 98.38%. Furthermore, the model achieved an AUC-ROC of 0.9861, reflecting strong class-level discriminability. Despite this performance, the entire model contains only 489 trainable parameters, underscoring the parameter efficiency of hybrid architectures relative to conventional deep learning baselines. These results suggest that integrating variational quantum circuits with classical inference modules provides an effective and scalable solution for network anomaly detection.