[Paper Review] Quantum Machine Learning for Material Synthesis and Hardware Security
This paper proposes Quantum Long Short-Term Memory (QLSTM) and Quantum Neural Network (QNN) models for two critical challenges: chemical retrosynthesis and Hardware Trojan (HT) detection. Using a 4-qubit QLSTM on the USPTO-50k dataset, it achieves 80% test accuracy in retrosynthesis prediction—surpassing classical LSTM’s 70%—while a 2-qubit QNN reaches 97.27% accuracy in HT detection from power and area features, demonstrating QML’s viability in material science and hardware security.
Using quantum computing, this paper addresses two scientifically pressing and day-to-day relevant problems, namely, chemical retrosynthesis which is an important step in drug/material discovery and security of the semiconductor supply chain. We show that Quantum Long Short-Term Memory (QLSTM) is a viable tool for retrosynthesis. We achieve 65% training accuracy with QLSTM, whereas classical LSTM can achieve 100%. However, in testing, we achieve 80% accuracy with the QLSTM while classical LSTM peaks at only 70% accuracy! We also demonstrate an application of Quantum Neural Network (QNN) in the hardware security domain, specifically in Hardware Trojan (HT) detection using a set of power and area Trojan features. The QNN model achieves detection accuracy as high as 97.27%.
Motivation & Objective
- Address the computational bottleneck in chemical retrosynthesis, a key step in drug and material discovery, by leveraging quantum machine learning (QML) to accelerate and improve prediction accuracy.
- Overcome limitations of classical ML models in retrosynthesis, such as scalability issues, long training times, and dependence on predefined reaction libraries.
- Demonstrate the feasibility of QML in hardware security by detecting Hardware Trojans using quantum neural networks trained on power and area features.
- Show that QML models can outperform classical models in specific scenarios despite current hardware constraints, particularly in generalization and robustness to small datasets.
- Establish a proof-of-concept for QML in two high-impact domains—material synthesis and semiconductor supply chain security—highlighting its potential for future optimization.
Proposed method
- Implement a quantum-classical hybrid QLSTM model using 4 qubits to process SMILES-encoded molecular sequences for retrosynthetic pathway prediction on the USPTO-50k dataset.
- Train the QLSTM using a sequence-to-sequence architecture with embedding layers, followed by a quantum processing unit (QPU) that applies parameterized quantum circuits to encode and process molecular features.
- Use a softmax layer in the output to convert quantum state measurements into discrete reaction predictions, with cross-entropy loss optimized via variational quantum algorithms.
- For hardware security, reduce 50 power and area Trojan features to 2 using t-SNE dimensionality reduction before feeding them into a 2-qubit QNN with a parameterized quantum circuit for classification.
- Train the QNN using stochastic gradient descent with a learning rate of 0.01, comparing performance against classical models including SVM, Perceptron, and fully connected neural networks.
- Augment the dataset and fine-tune hyperparameters (e.g., learning rate) to improve generalization, especially in low-data regimes, to evaluate QNN robustness.
Experimental results
Research questions
- RQ1Can a quantum-enhanced LSTM (QLSTM) model outperform classical LSTM in predicting retrosynthetic pathways for complex molecules, despite lower training accuracy?
- RQ2Does QLSTM generalize better than classical LSTM in test scenarios, particularly in predicting common substrings within reactants?
- RQ3Can a small-scale QNN (2-qubit) achieve competitive or superior detection accuracy for Hardware Trojans compared to classical ML models when trained on minimal feature sets?
- RQ4How does the performance of QNN compare to classical models like SVM and fully connected networks when the number of features is reduced via t-SNE?
- RQ5To what extent can QML models compensate for limited data and hardware constraints in real-world applications like HT detection and retrosynthesis?
Key findings
- The QLSTM model achieved 80% test accuracy in retrosynthesis prediction, surpassing the classical LSTM’s peak of 70%, despite training accuracy of 65% compared to LSTM’s 100%.
- In substring prediction, QLSTM reached 55% accuracy during training, while classical LSTM achieved 65%, but QLSTM outperformed classical models in testing with 80% accuracy versus 70%.
- The QNN model achieved a test accuracy of 97.27% in Hardware Trojan detection when trained on a reduced 2-feature dataset (from 50 features via t-SNE), outperforming linear classifiers like Perceptron (73.72%) and GaussianNB (74.92%).
- On the original 900-sample dataset with 50 features, the QNN achieved 97.09% accuracy, nearly matching the classical neural network’s 97.09%, indicating strong performance parity in low-data regimes.
- The classical neural network achieved 98.03% training accuracy and 98.35% test accuracy, showing that QNNs are not yet superior in accuracy but demonstrate strong potential for optimization.
- The results suggest that QML models can generalize better than classical models in certain test scenarios, particularly when data is sparse or features are reduced, highlighting their robustness in real-world deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.