Quantum Machine Learning Approach for the Prediction of Surface Roughness in Additive Manufactured Specimens

Akshansh Mishra,Vijaykumar S. Jatti
2023-04-24
Abstract:Surface roughness is a crucial factor influencing the performance and functionality of additive manufactured components. Accurate prediction of surface roughness is vital for optimizing manufacturing processes and ensuring the quality of the final product. Quantum computing has recently gained attention as a potential solution for tackling complex problems and creating precise predictive models. In this research paper, we conduct an in-depth comparison of three quantum algorithms i.e. the Quantum Neural Network (QNN), Quantum Forest (Q-Forest), and Variational Quantum Classifier (VQC) adapted for regression for predicting surface roughness in additive manufactured specimens for the first time. We assess the algorithms performance using Mean Squared Error (MSE), Mean Absolute Error (MAE), and Explained Variance Score (EVS) as evaluation metrics. Our findings show that the Q-Forest algorithm surpasses the other algorithms, achieving an MSE of 56.905, MAE of 7.479, and an EVS of 0.2957. In contrast, the QNN algorithm displays a higher MSE of 60.840 and MAE of 7.671, coupled with a negative EVS of -0.444, indicating that it may not be appropriate for predicting surface roughness in this application. The VQC adapted for regression exhibits an MSE of 59.121, MAE of 7.597, and an EVS of -0.0106, suggesting its performance is also inferior to the Q-Forest algorithm.
Quantum Physics,Artificial Intelligence,Machine Learning,Quantum Algebra
What problem does this paper attempt to address?
The problem that this paper attempts to solve is: **How to accurately predict the surface roughness of additive manufacturing (3D printing) samples**. Specifically, surface roughness is a key factor affecting the performance and function of additive - manufacturing components, and accurate prediction of surface roughness is crucial for optimizing the manufacturing process and ensuring the quality of the final product. To solve this problem, the author introduced the quantum machine - learning method for the first time and compared the performance of three quantum algorithms - **quantum neural network (QNN), quantum forest (Q - Forest) and variational quantum classifier (VQC)** in regression tasks to predict the surface roughness of additive - manufacturing samples. By using mean - squared error (MSE), mean absolute error (MAE) and explained variance score (EVS) as evaluation metrics, the author evaluated the performance of these algorithms. The following are the main formulas involved in the paper: 1. **Representation of the state of a qubit**: \[ |\psi\rangle = \alpha|0\rangle + \beta|1\rangle \] where \(\alpha\) and \(\beta\) are complex coefficients, representing the probability amplitudes of the qubit being in the states \(|0\rangle\) and \(|1\rangle\) respectively. 2. **Probability calculation of a qubit**: \[ P(|0\rangle) = |\alpha|^2 \] \[ P(|1\rangle) = |\beta|^2 \] and satisfying the normalization condition: \[ |\alpha|^2+|\beta|^2 = 1 \] 3. **Representation of the state of a multi - qubit system**: \[ |\psi_n\rangle=\sum_{i = 0}^{2^n-1}c_i|i\rangle \] where the range of \(i\) is from 0 to \(2^n - 1\), and: \[ \sum_{i = 0}^{2^n-1}|c_i|^2 = 1 \] 4. **Representation of an entangled state**: \[ |\Psi\rangle=\alpha|00\rangle+\beta|11\rangle \] For example, Bell states: \[ |\Phi^+\rangle=\frac{1}{\sqrt{2}}(|00\rangle + |11\rangle) \] \[ |\Phi^-\rangle=\frac{1}{\sqrt{2}}(|00\rangle - |11\rangle) \] \[ |\Psi^+\rangle=\frac{1}{\sqrt{2}}(|01\rangle + |10\rangle) \] \[ |\Psi^-\rangle=\frac{1}{\sqrt{2}}(|01\rangle - |10\rangle) \] 5. **Transformation in a quantum circuit**: \[ |\psi'\rangle = U|\psi\rangle \] where \(U\) is a unitary matrix, representing the operation of a quantum gate. Through comparison of experimental results, the paper found that the Q - Forest algorithm performed best in this task, with an MSE of 56.905, an MAE of 7.479, and an EVS of 0.2957. In contrast, the performance of QNN and VQC was poorer, especially with negative values appearing in the EVS metric, indicating that they may not be suitable for predicting the surface roughness of additive - manufacturing samples. In conclusion, this research demonstrates the potential of quantum machine - learning in the field of additive manufacturing and provides a valuable reference for further exploration of the possibilities of quantum algorithms in industrial applications.