Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Qiskit

License Current Release Downloads Coverage Status PyPI - Python Version Minimum rustc 1.89 Downloads DOI

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.

This library is the core component of Qiskit, which contains the building blocks for creating and working with quantum circuits, quantum operators, and primitive functions (Sampler and Estimator). It also contains a transpiler that supports optimizing quantum circuits, and a quantum information toolbox for creating advanced operators.

Qiskit provides two public APIs: a Python API and a C API. The Python API is the primary interface and prior to Qiskit 2.0 was the only public API available for Qiskit. The C API is designed to provide direct access to Qiskit's internal data model (which is written in Rust). The C API can be consumed as either a shared library (libqiskit.so) for standalone use, or from its embedding in the qiskit Python package for writing Python extension modules.

For more details on how to use Qiskit, refer to the documentation located here:

https://quantum.cloud.ibm.com/docs/

Installation

Python

For running Qiskit on Python we recommend installing Qiskit via pip:

pip install qiskit

Pip will handle all dependencies automatically and you will always install the latest (and well-tested) version.

To install from source, follow the instructions in the documentation.

Standalone C library

To install Qiskit as a standalone C library the only option is currently to build Qiskit from source. This requires having the Rust compiler installed. We recommend installing GNU Make to simplify the build process. With these requirements installed you can run:

make c

This will compile the C library and put the dist/c directory in the root of the repository which will contain the shared library and C headers for the library.

You can refer to the documentation on installing the C API for more details and how to use the built library.

Create your first quantum program in Qiskit

Now that Qiskit is installed, it's time to begin working with Qiskit. We will use the Python interface to demonstrate creating a quantum program. The essential parts of a quantum program are:

  1. Define and build a quantum circuit that represents the quantum state
  2. Define the classical output by measurements or a set of observable operators
  3. Depending on the output, use the Sampler primitive to sample outcomes or the Estimator primitive to estimate expectation values.

Create an example quantum circuit using the QuantumCircuit class:

import numpy as np
from qiskit import QuantumCircuit

# 1. A quantum circuit for preparing the quantum state |000> + i |111> / √2
qc = QuantumCircuit(3)
qc.h(0)             # generate superposition
qc.p(np.pi / 2, 0)  # add quantum phase
qc.cx(0, 1)         # 0th-qubit-Controlled-NOT gate on 1st qubit
qc.cx(0, 2)         # 0th-qubit-Controlled-NOT gate on 2nd qubit

This simple example creates an entangled state known as a GHZ state $(|000\rangle + i|111\rangle)/\sqrt{2}$. It uses the standard quantum gates: Hadamard gate (h), Phase gate (p), and CNOT gate (cx).

Once you've made your first quantum circuit, choose which primitive you will use. Starting with the Sampler, we use measure_all(inplace=False) to get a copy of the circuit in which all the qubits are measured:

# 2. Add the classical output in the form of measurement of all qubits
qc_measured = qc.measure_all(inplace=False)

# 3. Execute using the Sampler primitive
from qiskit.primitives import StatevectorSampler
sampler = StatevectorSampler()
job = sampler.run([qc_measured], shots=1000)
result = job.result()
print(f" > Counts: {result[0].data['meas'].get_counts()}")

Running this will give an outcome similar to {'000': 497, '111': 503} which is 000 50% of the time and 111 50% of the time up to statistical fluctuations. To illustrate the power of the Estimator, we now use the quantum information toolbox to create the operator $XXY+XYX+YXX-YYY$ and pass it to the run() function, along with our quantum circuit. Note that the Estimator requires a circuit without measurements, so we use the qc circuit we created earlier.

# 2. Define the observable to be measured 
from qiskit.quantum_info import SparsePauliOp
operator = SparsePauliOp.from_list([("XXY", 1), ("XYX", 1), ("YXX", 1), ("YYY", -1)])

# 3. Execute using the Estimator primitive
from qiskit.primitives import StatevectorEstimator
estimator = StatevectorEstimator()
job = estimator.run([(qc, operator)], precision=1e-3)
result = job.result()
print(f" > Expectation values: {result[0].data.evs}")

Running this will give the outcome 4. For fun, try to assign a value of +/- 1 to each single-qubit operator X and Y and see if you can achieve this outcome. (Spoiler alert: this is not possible!)

Using the Qiskit-provided qiskit.primitives.StatevectorSampler and qiskit.primitives.StatevectorEstimator will not take you very far. The power of quantum computing cannot be simulated on classical computers and you need to use real quantum hardware to scale to larger quantum circuits. However, running a quantum circuit on hardware requires rewriting to the basis gates and connectivity of the quantum hardware. The tool that does this is the transpiler, and Qiskit includes transpiler passes for synthesis, optimization, mapping, and scheduling. However, it also includes a default compiler, which works very well in most examples. The following code will map the example circuit to the basis_gates = ["cz", "sx", "rz"] and a bidirectional linear chain of qubits $0 \leftrightarrow 1 \leftrightarrow 2$ with the coupling_map = [[0, 1], [1, 0], [1, 2], [2, 1]].

from qiskit import transpile
from qiskit.transpiler import Target, CouplingMap
target = Target.from_configuration(
    basis_gates=["cz", "sx", "rz"],
    coupling_map=CouplingMap.from_line(3),
)
qc_transpiled = transpile(qc, target=target)

Executing your code on real quantum hardware

Qiskit provides an abstraction layer that lets users run quantum circuits on hardware from any vendor that provides a compatible interface. The best way to use Qiskit is with a runtime environment that provides optimized implementations of Sampler and Estimator for a given hardware platform. This runtime may involve using pre- and post-processing, such as optimized transpiler passes with error suppression, error mitigation, and, eventually, error correction built in. A runtime implements the qiskit.primitives.BaseSamplerV2 and qiskit.primitives.BaseEstimatorV2 interfaces. For example, some packages that provide implementations of a runtime primitive are:

Qiskit also provides a lower-level abstract interface for describing quantum backends. This interface, located in qiskit.providers, defines an abstract BackendV2 class that providers can implement to represent their hardware or simulators to Qiskit. The backend class includes a common interface for executing circuits on the backends; however, in this interface each provider may perform different types of pre- and post-processing and return outcomes that are vendor-defined. Some examples of published provider packages that interface with real hardware are:

You can refer to the documentation of these packages for further instructions on how to get access and use these systems.

Contribution Guidelines

If you'd like to contribute to Qiskit, please take a look at our contribution guidelines. By participating, you are expected to uphold our code of conduct.

We use GitHub issues for tracking requests and bugs. Please join the Qiskit Slack community for discussion, comments, and questions. For questions related to running or using Qiskit, Stack Overflow has a qiskit. For questions on quantum computing with Qiskit, use the qiskit tag in the Quantum Computing Stack Exchange (please, read first the guidelines on how to ask in that forum).

Authors and Citation

Qiskit is the work of many people who contribute to the project at different levels. If you use Qiskit, please cite as per the included BibTeX file.

Changelog and Release Notes

The changelog for a particular release is dynamically generated and gets written to the release page on GitHub for each release. For example, you can find the page for the 1.2.0 release here:

https://github.com/Qiskit/qiskit/releases/tag/1.2.0

The changelog for the current release can be found in the releases tab: Releases The changelog provides a quick overview of notable changes for a given release.

Additionally, as part of each release, detailed release notes are written to document in detail what has changed. This includes any documentation on potential breaking changes on upgrade, and new features. See all release notes here.

Acknowledgements

We acknowledge partial support for Qiskit development from the DOE Office of Science National Quantum Information Science Research Centers, Co-design Center for Quantum Advantage (C2QA) under contract number DE-SC0012704.

License

Apache License 2.0

Metadata

Release files for qiskit 2.6.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qiskit 2.6.0rc1
File Size Uploaded
qiskit-2.6.0rc1.tar.gz 4.5 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for qiskit 2.6.0rc1
File
qiskit-2.6.0rc1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_s390x.whl CPython 3.10 abi3 Linux glibc 2.28+ IBM System/390x Details
qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_ppc64le.whl CPython 3.10 abi3 Linux glibc 2.28+ PowerPC 64-le Details
qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
qiskit-2.6.0rc1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
qiskit-2.6.0rc1-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 74.5 MB

Release files / qiskit-2.6.0rc1.tar.gz

Download URL qiskit-2.6.0rc1.tar.gz
Size 4.5 MB
Tags Source
SHA-256 checksum
How to use checksums
c0defb920bae58f37f6b160e66a625e4952b2fe210784debf39714583633ff06
BLAKE2b-256 checksum
How to use checksums
1234da3fabd7f46b2f55b7f61889f60e34c85a4193ae0209852fe9be8353ce28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / qiskit-2.6.0rc1-cp310-abi3-win_amd64.whl

Download URL qiskit-2.6.0rc1-cp310-abi3-win_amd64.whl
Size 9.8 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
1fc8e71d45841c510b5f7706b92e14baa494147e8027fd1d221b0c55b8377a4b
BLAKE2b-256 checksum
How to use checksums
73be6e3a2772c5b6f896eadb03da4a9f5b4ec544c8b1f7ee4d818d583c4cb4bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_x86_64.whl
Size 10.1 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
17fdf5ca3e6751aaac06db60456b0ee18f7a556f10385d7f45cbef17cddb2cd0
BLAKE2b-256 checksum
How to use checksums
2465c6bb27522bd1e6bf81a18b879ea66bd91aeb0c78b916ca24129f1aaf1840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_s390x.whl

Download URL qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_s390x.whl
Size 11.9 MB
Tags CPython 3.10 Linux glibc 2.28+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
daf01c8d72586b70479761f6babbdc7507ece8a50a22a1c213d6c3f2e9475d3b
BLAKE2b-256 checksum
How to use checksums
40c90355781769084e643a71f4b9a423a6a78413a87f0f77292b4750e24ec42c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_ppc64le.whl

Download URL qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_ppc64le.whl
Size 10.3 MB
Tags CPython 3.10 Linux glibc 2.28+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
695b551dcc1ff07f09d5ed593b03751135d39afc9e8da836ac2038717fa9243c
BLAKE2b-256 checksum
How to use checksums
cc18e72167a8c017d03cfed1d6e7b316535e6478df3d1527d2ead1ec1072f550
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL qiskit-2.6.0rc1-cp310-abi3-manylinux_2_28_aarch64.whl
Size 9.4 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
25b20f16c5ace274b2db6e75aab16fd73956c28c0da19c63cb52624b0265681d
BLAKE2b-256 checksum
How to use checksums
bf6416aa346d4f8da21a896bb82cdf2347fed7278f5634b75ad83d12f9bd5ef8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / qiskit-2.6.0rc1-cp310-abi3-macosx_11_0_arm64.whl

Download URL qiskit-2.6.0rc1-cp310-abi3-macosx_11_0_arm64.whl
Size 9.0 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fb35a04d498a51d41a3a653c68b41eaf2bc16146f120bea8f4408a662caaa591
BLAKE2b-256 checksum
How to use checksums
08e882edfebc867e971e4c2edf19b26904ddaf9f60d1b93c593b810f3bc4a5af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / qiskit-2.6.0rc1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL qiskit-2.6.0rc1-cp310-abi3-macosx_10_12_x86_64.whl
Size 9.6 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
63e2b954adf72547dc499aa124863801f0d34d0943c398ff8e74f1c47119d1ea
BLAKE2b-256 checksum
How to use checksums
b34d91fdc157a36e08c8d9df5f0acda54af0e4e419781d725ff6db53bcb6e833
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.6.0rc1 This release

8 release files

2.5.2

8 release files

2.5.1

8 release files

2.5.0

8 release files

2.4.2

8 release files

2.4.1

8 release files

2.4.0

8 release files

2.3.1

8 release files

2.3.0

8 release files

2.2.3

8 release files

2.2.2

8 release files

2.2.1

8 release files

2.2.0

8 release files

2.1.2

8 release files

2.1.1

8 release files

2.1.0

8 release files

2.0.3

8 release files

2.0.2

8 release files

2.0.1

8 release files

2.0.0

8 release files

1.4.6

8 release files

1.4.5

10 release files

1.4.4

10 release files

1.4.3

10 release files

1.4.2

10 release files

1.4.0

10 release files

1.3.3

10 release files

1.3.2

10 release files

1.3.1

10 release files

1.3.0

10 release files

1.2.2

11 release files

1.2.1

11 release files

1.2.0

11 release files

1.1.1

11 release files

1.1.0

11 release files

1.0.1

11 release files

1.0.0

11 release files

0.46.3

2 release files

0.46.2

2 release files

0.45.2

2 release files

0.45.1

2 release files

0.44.3

2 release files

0.44.1

2 release files

0.44.0

1 release file

0.43.3

1 release file

0.43.2

1 release file

0.43.1

1 release file

0.43.0

1 release file

0.42.1

1 release file

0.42.0

1 release file

0.41.1

1 release file

0.41.0

1 release file

0.40.0

1 release file

0.39.5

1 release file

0.39.4

1 release file

0.39.3

1 release file

0.39.2

1 release file

0.39.1

1 release file

0.39.0

1 release file

0.38.0

1 release file

0.37.2

1 release file

0.37.1

1 release file

0.37.0

1 release file

0.36.2

1 release file

0.36.1

1 release file

0.36.0

1 release file

0.35.0

1 release file

0.34.2

1 release file

0.34.1

1 release file

0.34.0

1 release file

0.33.1

1 release file

0.33.0

1 release file

0.32.1

1 release file

0.32.0

1 release file

0.31.0

1 release file

0.30.1

1 release file

0.30.0

1 release file

0.29.1

1 release file

0.29.0

1 release file

0.28.0

1 release file

0.27.0

1 release file

0.26.2

1 release file

0.26.1

1 release file

0.26.0

1 release file

0.25.4

1 release file

0.25.3

1 release file

0.25.2

1 release file

0.25.1

1 release file

0.25.0

1 release file

0.24.1

1 release file

0.24.0

1 release file

0.23.6

1 release file

0.23.5

1 release file

0.23.4

1 release file

0.23.3

1 release file

0.23.2

1 release file

0.23.1

1 release file

0.23.0

1 release file

0.22.0

1 release file

0.21.0

1 release file

0.20.1

1 release file

0.20.0

1 release file

0.19.6

1 release file

0.19.5

1 release file

0.19.4

1 release file

0.19.3

1 release file

0.19.2

1 release file

0.19.1

1 release file

0.19.0

1 release file

0.18.3

1 release file

0.18.2

1 release file

0.18.1

1 release file

0.18.0

1 release file

0.17.0

1 release file

0.16.2

1 release file

0.16.1

1 release file

0.16.0

1 release file

0.15.0

1 release file

0.14.1

1 release file

0.14.0

1 release file

0.13.0

1 release file

0.12.2

1 release file

0.12.1

1 release file

0.12.0

1 release file

0.11.2

1 release file

0.11.1

1 release file

0.11.0

1 release file

0.10.5

1 release file

0.10.4

1 release file

0.10.3

1 release file

0.10.2

1 release file

0.10.1

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.7.3

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

2 release files

0.6.1

4 release files

0.6.0

4 release files

0.5.7

4 release files

0.5.6

4 release files

0.5.5

4 release files

0.5.4

4 release files

0.5.3

4 release files

0.5.2

4 release files

0.5.1

4 release files

0.5.0

4 release files

0.4.14

5 release files

0.4.13

4 release files

0.4.12

5 release files

0.4.11

4 release files

0.4.9

6 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.16

2 release files

0.3.15

2 release files

0.3.14

2 release files

0.3.13

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page