Programming Variational Quantum Circuits with Quantum-Train Agent

Chen-Yu Liu,Samuel Yen-Chi Chen,Kuan-Cheng Chen,Wei-Jia Huang,Yen-Jui Chang
2024-12-02
Abstract:In this study, the Quantum-Train Quantum Fast Weight Programmer (QT-QFWP) framework is proposed, which facilitates the efficient and scalable programming of variational quantum circuits (VQCs) by leveraging quantum-driven parameter updates for the classical slow programmer that controls the fast programmer VQC model. This approach offers a significant advantage over conventional hybrid quantum-classical models by optimizing both quantum and classical parameter management. The framework has been benchmarked across several time-series prediction tasks, including Damped Simple Harmonic Motion (SHM), NARMA5, and Simulated Gravitational Waves (GW), demonstrating its ability to reduce parameters by roughly 70-90\% compared to Quantum Long Short-term Memory (QLSTM) and Quantum Fast Weight Programmer (QFWP) without compromising accuracy. The results show that QT-QFWP outperforms related models in both efficiency and predictive accuracy, providing a pathway toward more practical and cost-effective quantum machine learning applications. This innovation is particularly promising for near-term quantum systems, where limited qubit resources and gate fidelities pose significant constraints on model complexity. QT-QFWP enhances the feasibility of deploying VQCs in time-sensitive applications and broadens the scope of quantum computing in machine learning domains.
Quantum Physics
What problem does this paper attempt to address?
The problem that this paper attempts to solve is: in quantum machine learning (QML), how to program variational quantum circuits (VQC) efficiently, especially when dealing with time - series prediction tasks, how to maintain or improve prediction accuracy while reducing the number of parameters. Specifically, the paper proposes a new framework named Quantum - Train Quantum Fast Weight Programmer (QT - QFWP), aiming to optimize the control of the fast - programming VQC model by the classical slow programmer through quantum - driven parameter updates, thereby overcoming the limitations of traditional hybrid quantum - classical models in parameter management and computational efficiency. ### Main problems and solutions: 1. **Parameter management and computational efficiency**: - **Problem**: Traditional hybrid quantum - classical models face complex parameter management and low computational efficiency when dealing with large - scale data sets, especially when quantum hardware resources are limited. - **Solution**: The QT - QFWP framework significantly reduces the number of parameters and improves computational efficiency by using a quantum neural network (QNN) to generate the weights of the classical slow programmer. Specifically, this framework can reduce the number of parameters by about 70 - 90% without sacrificing prediction accuracy. 2. **Time - series prediction tasks**: - **Problem**: Existing quantum recurrent neural networks (QRNN) require long - term training and a huge amount of computation when dealing with time - series prediction tasks. - **Solution**: QT - QFWP effectively reduces training time and computation by dynamically adjusting the parameters of VQC, avoiding the problem of having to rewrite parameters at each time step. In addition, this framework shows higher prediction accuracy and efficiency when dealing with time - series prediction tasks such as Damped Simple Harmonic Motion (SHM), NARMA5, and Simulated Gravitational Waves (GW). 3. **Model compression and descriptive ability**: - **Problem**: In fields such as high - energy physics and cosmology, the complexity and number of parameters of the model place strict requirements on computational resources. - **Solution**: QT - QFWP not only significantly reduces the number of parameters but also maintains the descriptive ability of the model. Experimental results show that this framework can achieve high - precision time - series prediction with fewer parameters on data sets such as Damped SHM, NARMA5, and Simulated GW. ### Experimental verification: - **Damped Simple Harmonic Motion (SHM)**: After 100 epochs of training, QT - QFWP has a training loss of 1.57×10^(-3) and a test loss of 2.92×10^(-5), which is better than QLSTM and QFWP. - **NARMA5**: Although QFWP has the lowest loss after 100 epochs of training, QT - QFWP still shows competitiveness, with a training loss of 1.32×10^(-4) and a test loss of 1.98×10^(-4). - **Simulated Gravitational Waves (GW)**: After 100 epochs of training, QT - QFWP has a training loss of 6.44×10^(-3) and a test loss of 1.52×10^(-3), demonstrating its potential in processing complex astrophysical signals. ### Conclusion: The QT - QFWP framework, by combining the advantages of quantum and classical computing, provides an efficient and scalable method for programming variational quantum circuits, especially suitable for time - series prediction tasks. This framework not only significantly reduces the number of parameters but also maintains or even improves prediction accuracy, providing new possibilities for future applications of quantum machine learning.