Quantum Machine Learning: A Hands-on Tutorial for Machine Learning Practitioners and Researchers
Yuxuan Du, Xinbiao Wang, Naixu Guo, Zhan Yu, Yang Qian, Kaining Zhang, Min-Hsiu Hsieh, Patrick Rebentrost, Dacheng Tao
TL;DR
This hands-on tutorial introduces quantum machine learning (QML) to AI practitioners by detailing foundational quantum computing concepts, core QML algorithms, and practical considerations such as trainability, generalization, and computational complexity, supplemented by code demos at https://qml-tutorial.github.io/. It surveys both near-term (NISQ) and fault-tolerant (FTQC) paradigms, covering quantum kernel methods, quantum neural networks (QNNs), and quantum transformer concepts, with emphasis on data encoding, kernel design, and linear algebra tools like block encoding and quantum singular value transformation (QSVT). The work provides concrete, executable pathways (via PennyLane and related libraries) for implementing QML techniques on real hardware or simulators, including MNIST classification and QK demonstrations, while highlighting read-in/read-out bottlenecks and strategies to mitigate them (e.g., shadow tomography, QRAM, data re-uploading). Overall, the tutorial articulates the current landscape of QML, clarifies theoretical foundations for expressivity and generalization, and sketches practical roadmaps for deploying QML in AI research and industry, acknowledging hardware constraints and the ongoing transition from FTQC to NISQ-enabled workflows.
Abstract
This tutorial intends to introduce readers with a background in AI to quantum machine learning (QML) -- a rapidly evolving field that seeks to leverage the power of quantum computers to reshape the landscape of machine learning. For self-consistency, this tutorial covers foundational principles, representative QML algorithms, their potential applications, and critical aspects such as trainability, generalization, and computational complexity. In addition, practical code demonstrations are provided in https://qml-tutorial.github.io/ to illustrate real-world implementations and facilitate hands-on learning. Together, these elements offer readers a comprehensive overview of the latest advancements in QML. By bridging the gap between classical machine learning and quantum computing, this tutorial serves as a valuable resource for those looking to engage with QML and explore the forefront of AI in the quantum era.
