OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Qiskit Machine Learning

Qiskit Machine Learning is an open-source Python library in the Qiskit ecosystem that provides quantum kernels, quantum neural networks and learning algorithms for classification and regression on quantum hardware or classical simulators.

Independent OpenViST project profile, based on linked sources.

Qiskit Machine Learning — OpenViST project profile in AI Developer Tools & SDKs.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a Python project needs Qiskit-based building blocks for quantum machine-learning experiments, particularly kernel methods, QNNs, or hybrid PyTorch models.

Who it is for

  • Python developers building quantum machine-learning experiments with Qiskit.
  • Researchers and practitioners prototyping quantum classification or regression models.
  • Developers integrating quantum neural networks into PyTorch workflows.

Documented uses

  • Compute quantum kernel matrices and use them with quantum or classical kernel-based learning algorithms.
  • Build and train quantum neural networks, including variational classifiers and regressors.
  • Connect QNNs to PyTorch for hybrid quantum-classical neural-network workflows.
Before you choose

Requirements & limits

The library is open source under the Apache-2.0 license. The repository recommends installation through pip.

  • The library is built on Qiskit and targets quantum hardware as well as classical simulators.
  • PyTorch integration uses the optional torch install extra and TorchConnector.
  • NLopt is required for global optimizers; sparse-array support is available through a separate optional install extra.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install Qiskit Machine Learning in an existing Qiskit environment

Install the package in the Python environment where Qiskit is already installed.

Before you start

  • Python environment with Qiskit installed, following Qiskit's installation instructions.

Steps

  1. Activate the development environment where Qiskit is installed.

  2. Run the command below.

    Documented command
    pip install qiskit-machine-learning
  3. Optionally, install the PyTorch integration with the command below or sparse-array support with the command below.

    Documented command
    pip install 'qiskit-machine-learning[torch]'
    Documented command
    pip install 'qiskit-machine-learning[sparse]'

Expected outcome

Qiskit Machine Learning is installed; pip automatically installs a compatible Qiskit version if one is not already present. Optional extras provide the corresponding PyTorch or sparse integration.

Guide limitations

  • NLopt is required for global optimizers and is installed separately; the documented pip command is pip install nlopt on Windows and Linux, or brew install nlopt on macOS.
  • Qiskit has separate installation instructions for supported environments and platforms.
Source-based practical guide

Set up a Qiskit Machine Learning source checkout

Install the development version from a local repository checkout, with optional editable installation or developer requirements.

Before you start

  • A development environment with Qiskit installed, set up using Qiskit's source-install instructions first.

Steps

  1. Clone the repository with the command below.

    Documented command
    git clone https://github.com/qiskit-community/qiskit-machine-learning.git
  2. Change into the new qiskit-machine-learning directory.

  3. If you plan to run tests or linting checks, install developer requirements with the command below.

    Documented command
    pip install -r requirements-dev.txt
  4. Install the package with the command below, or use the command below for editable mode.

    Documented command
    pip install .
    Documented command
    pip install -e .

Expected outcome

The checkout is installed in the development environment; editable mode applies project code changes without reinstalling.

Guide limitations

  • This installs the version under development rather than the PyPI release.
  • Latest project changes may require new or changed Qiskit features, so Qiskit should be installed from source first.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
13 October 2026
Original website title
qiskit-community/qiskit-machine-learning · Official homepage title · retained in its source language