• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2025, Vol. 47 ›› Issue (3): 412-421.

• High Performance Computing • Previous Articles     Next Articles

QTorch:A quantum-classical hybrid machine learning framework built on a standalone quantum programming language

CHEN Wenjin   

  1. (Institute for Quantum Information & State Key Laboratory of High Performance Computing,
    College of Computer Science and Technology,National University of Defense Technology,Changsha 410073,China)
  • Received:2023-09-12 Revised:2023-12-24 Online:2025-03-25 Published:2025-04-01

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 computing research. However, efficiently describing and compiling QML algorithms using existing hybrid quantum-classical machine learning frameworks remains a significant challenge, hindering the development 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 performance. 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 supporting the development and implementation of quantum-classical hybrid machine learning algorithms, thereby propelling advancements in the field of QML.

Key words: quantum machine learning, variational quantum circuit, noisy intermediate-scale quantum(NISQ), time performance optimization ,