摘要
Abstract
In recent years,quantum computing systems have demonstrated their quantum supremacy in specific sampling problems,marking humanity's entry into the noisy intermediate-scale quantum(NISQ)era.Quantum machine learning(QML)algorithms have garnered significant attention in the field of quantum computing due to their potential to leverage quantum supremacy in solving practical problems of significance.This has made them a prominent and highly relevant topics in quantum compu-ting research.However,efficiently describing and compiling QML algorithms using existing hybrid quantum-classical machine learning frameworks remains a significant challenge,hindering the develop-ment of algorithms.This paper addresses this challenge by introducing QTorch,a quantum-classical hybrid machine learning framework.QTorch is constructed by leveraging PyTorch,an open-source classical machine learning framework,in conjunction with a standalone quantum programming language.It incorporates automatic differentiation techniques tailored for real quantum hardware and quantum-classical hybrid machine learning algorithms.Additionally,QTorch introduces parallel training optimization and parameter substitution optimization,two key features designed to enhance time per-formance.To evaluate the effectiveness of QTorch,a series of experiments were conducted to validate its capabilities and advantages.The results demonstrate that QTorch serves as an efficient platform sup-porting the development and implementation of quantum-classical hybrid machine learning algorithms,thereby propelling advancements in the field of QML.关键词
量子机器学习/变分量子线路/含噪声中等规模量子(NISQ)/时间性能优化Key words
quantum machine learning/variational quantum circuit/noisy intermediate-scale quantum(NISQ)/time performance optimization分类
计算机与自动化