arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.16701quant-phcs.CR
收藏

TrojanNet:使用机器学习检测量子电路中的木马

TrojanNet: Detecting Trojans in Quantum Circuits using Machine Learning

Subrata Das, Swaroop Ghosh

AI总结:

针对不可信量子编译器插入木马的安全风险,提出基于CNN的TrojanNet模型,通过检测和分类QAOA电路中的木马实现98.80%准确率,显著提升量子电路安全性。

摘要:

量子计算在各类应用中具有巨大潜力,但其安全性仍是一个关键问题。量子电路需要高质量的编译器来优化深度和门数量,以提高在当前含噪量子计算机上的成功概率。高效但不可靠/不可信的编译器日益增多;然而,它们带来了篡改风险,如木马插入。我们提出TrojanNet,一种通过检测和分类插入木马的电路来增强量子电路安全性的新方法。特别地,我们专注于在解决广泛优化问题中流行的量子近似优化算法(QAOA)电路。我们研究了木马插入对QAOA电路的影响,并开发了一个卷积神经网络(CNN)模型,称为TrojanNet,以准确识别它们的存在。使用Qiskit框架,我们通过改变木马门类型、门数量、插入位置和编译器后端生成了12个多样化的数据集。这些数据集包含原始无木马的QAOA电路及其对应的插入木马版本。生成的数据集随后用于训练和评估TrojanNet模型。实验结果表明,在有效检测和分类插入木马的QAOA电路方面,平均准确率为98.80%,平均F1分数为98.53%。最后,我们将TrojanNet与专门为传统网表设计的现有基于机器学习的木马检测方法进行了性能比较。

英文摘要:

Quantum computing holds tremendous potential for various applications, but its security remains a crucial concern. Quantum circuits need high-quality compilers to optimize the depth and gate count to boost the success probability on current noisy quantum computers. There is a rise of efficient but unreliable/untrusted compilers; however, they present a risk of tampering such as Trojan insertion. We propose TrojanNet, a novel approach to enhance the security of quantum circuits by detecting and classifying Trojan-inserted circuits. In particular, we focus on the Quantum Approximate Optimization Algorithm (QAOA) circuit that is popular in solving a wide range of optimization problems. We investigate the impact of Trojan insertion on QAOA circuits and develop a Convolutional Neural Network (CNN) model, referred to as TrojanNet, to identify their presence accurately. Using the Qiskit framework, we generate 12 diverse datasets by introducing variations in Trojan gate types, the number of gates, insertion locations, and compiler backends. These datasets consist of both original Trojan-free QAOA circuits and their corresponding Trojan-inserted counterparts. The generated datasets are then utilized for training and evaluating the TrojanNet model. Experimental results showcase an average accuracy of 98.80% and an average F1-score of 98.53% in effectively detecting and classifying Trojan-inserted QAOA circuits. Finally, we conduct a performance comparison between TrojanNet and existing machine learning-based Trojan detection methods specifically designed for conventional netlists.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑