qiskit-community/qiskit-machine-learning

An open-source library built on Qiskit for quantum machine learning tasks at scale on quantum hardware and classical simulators

What it solves

Qiskit Machine Learning provides the fundamental building blocks needed to create and train machine learning models using quantum computers. It bridges the gap between quantum computing and classical machine learning by providing high-level tools for classification and regression tasks.

How it works

The library implements several core quantum machine learning approaches:

  • Kernel-based methods: Uses the FidelityQuantumKernel to compute kernel matrices, which can then be used with Quantum Support Vector Classifiers (QSVC) or Regressors (QSVR).
  • Quantum Neural Networks (QNNs): Provides a generic interface for neural networks via EstimatorQNN (which outputs expected values of observables) and SamplerQNN (which translates bit-string counts into outputs).
  • Variational Algorithms: High-level tools like the Variational Quantum Classifier (VQC) and Variational Quantum Regressor (VQR) automatically construct QNNs using feature maps and ansatze.
  • PyTorch Integration: The TorchConnector allows QNNs to be integrated into PyTorch workflows, enabling automatic differentiation and the creation of hybrid quantum-classical neural networks.

Who it’s for

It is designed for both beginners who want to prototype quantum ML models without deep quantum physics knowledge, and researchers conducting innovative proofs-of-concept in the field.

Highlights

  • Hybrid Workflows: Seamless integration with PyTorch for hybrid quantum-classical models.
  • User-friendly API: High-level syntax for quickly building VQC and VQR models.
  • ** uma a flexible framework**: Supports both kernel-based methods and neural network-based approaches.
  • Extensible Architecture: Built on the Qiskit SDK to allow for the integration of new cutting-edge features.

Related

  • Project
  • Project
  • Project
  • Project
  • Project