In cybersecurity, protecting sensitive data from malicious attacks is of paramount importance. Classical machine learning algorithms have shown limitations in this domain due to their inability to handle complex, highly dynamic, and adversarial attack scenarios. Quantum machine learning (QML) algorithms, with their enhanced processing capacity and robustness against such attacks, offer a promising alternative to address these shortcomings. Consequently, QML can significantly improve the detection and mitigation of sophisticated and evolving threats. This study explores the application of QML algorithms, specifically the quantum support vector machine (QSVM) and a hybrid quantum neural network (QNN) and QSVM architecture (QSVM-QNN), on two real-world cybersecurity datasets: APA-DDoS and CIC-IoT2022. Initially, different qubit counts and encoding techniques are investigated to assess the effectiveness of the swap test and UU† methods for inner product calculation, which is later employed in the QSVM algorithm. Subsequently, the performance of the proposed QSVM and QSVM-QNN models is evaluated and compared against classical counterparts across varying numbers of qubits and encoding schemes. The results show that the proposed QSVM model achieved accuracies of 1.000 and 0.985, while the QSVM-QNN model reached accuracies of 0.970 and 1.000, respectively, on the two datasets, demonstrating strong performance and surpassing several classical models. Furthermore, to assess robustness, the proposed algorithms were tested under various noise models, highlighting their capability to provide effective solutions for cybersecurity challenges in realistic quantum noisy environments.
Saxena et al. (Sun,) studied this question.