VQNet¶
Core Features of VQNet¶
Multi-platform compatibility and cross-environment support¶
VQNet supports users to conduct research and development of quantum machine learning in a variety of hardware and operating system environments. Whether using CPU or GPU for quantum computing simulation or calling real quantum chips through Benyuan Quantum Cloud Service, VQNet can provide seamless support. Currently, VQNet is compatible with python3.9, python3.10, and python3.11 versions of Windows, Linux, and macOS systems.
Perfect interface design and ease of use¶
VQNet uses Python as the front-end language, provides a function interface similar to PyTorch, and can freely choose a variety of computing backends to implement the automatic differentiation function of classical quantum machine learning models. The framework has built-in: 100+ commonly used Tensor computing interfaces, 100+ quantum variational circuit computing interfaces, and 50+ classical neural network interfaces. These interfaces cover the complete development process from classical machine learning to quantum machine learning, and will be continuously updated.
Efficient computing performance and expansion capabilities¶
Real quantum chip experiment support: For users who need real quantum chip experiments, VQNet integrates the original pyQPanda interface, and combines the efficient scheduling capabilities of the original Sinan to achieve fast quantum circuit simulation calculations and real chip operation.
Local computing optimization: For local computing needs, VQNet provides a quantum machine learning programming interface based on CPU or GPU, and uses automatic differentiation technology to perform quantum variational circuit gradient calculations, which is significantly faster than traditional parameter drift methods (such as Qiskit).
Distributed computing support: VQNet supports MPI-based distributed computing, which can realize the function of training large-scale hybrid quantum-classical neural network models on multiple nodes.
Rich application scenarios and example support¶
VQNet is not only a powerful development tool, but also widely used in multiple projects within the company, including power optimization, medical data analysis, image processing and other fields. In order to help users get started quickly, VQNet provides a variety of scenarios ranging from basic tutorials to advanced applications in the official website and API online documentation. These resources enable users to easily understand how to use VQNet to solve practical problems and quickly build their own quantum machine learning applications.
Installation Guide
Hands-on Examples
- Quantum Machine Learning Demos Using Autograd
- Example of fitting a Fourier series on a GPU using quantum variational circuits
- HQCNN example of hybrid quantum classical neural network
- Quantum reloading algorithm example
- Circuit-centric quantum classifiers algorithm example
- Variational Shadow Quantum Learning for Classification model example
- QMLP Model Example
- Example of implementing a reinforcement learning algorithm using a quantum classical hybrid neural network model
- Example of quantum classical transfer learning
- Quantum convolutional neural network model based on small samples
- Quantum kernel function model for handwritten digit recognition
- Quantum Natural Gradient Interface Example
- Quantum Singular Value Decomposition
- Optimization of variational quantum circuits
- Quantum dropout implementation
- Quantum Circuit Boltzmann Machine
- Time Series Data Prediction Based on QGRU
- Quantum Machine Learning Using Qpanda2
Classic neural network API
QNN API integrated with pyqpanda
Autograd QNN API
Quantum Large Model Fine-Tuning
Others
- VQNet uses torch for low-level computation
- Frequently Asked Questions
- VQNet Changelog
- [v2.17.1] - 2025-8-22
- [v2.17.0] - 2025-4-22
- [v2.16.0] - 2025-1-15
- [v2.15.0] - 2024-11-19
- [v2.14.0] - 2024-09-30
- [v2.13.0] - 2024-07-30
- [v2.12.0] - 2024-05-01
- [v2.11.0] - 2024-03-01
- [v2.10.0] - 2023-12-30
- [v2.9.0] - 2023-09-08
- [v2.0.8] - 2023-07-26
- [v2.0.7] - 2023-07-03
- [v2.0.6] - 2023-02-22
- [v2.0.5] - 2022-12-25
- [v2.0.4] - 2022-09-20
- [v2.0.3] - 2022-07-15
- [v2.0.2] - 2022-05-15
- [v2.0.1] - 2022-03-30