Skip to main content

Qiskit IBM Quantum Provider (NOW DEPRECATED)

License CI Code style: black Coverage Status


PLEASE NOTE: As of version 0.11.0, released in April 2024, qiskit-ibm-provider has been deprecated with its support ending and eventual archival being no sooner than 3 months from that date. The function provided by qiskit-ibm-provider has been moved to qiskit-ibm-runtime. Please see the Runtime migration Guide for more details. We encourage you to migrate over at your earliest convenience.


Qiskit is an open-source SDK for working with quantum computers at the level of circuits, algorithms, and application modules.

This project contains a provider that allows accessing the IBM Quantum systems and simulators.

Migrating from qiskit-ibmq-provider

If you are familiar with the qiskit-ibmq-provider repository, check out the migration guide.

Installation

You can install the provider using pip:

pip install qiskit-ibm-provider

Provider Setup

  1. Create an IBM Quantum account or log in to your existing account by visiting the IBM Quantum login page.

  2. Copy (and/or optionally regenerate) your API token from your IBM Quantum account page.

  3. Take your token from step 2, here called MY_API_TOKEN, and save it by calling IBMProvider.save_account():

    from qiskit_ibm_provider import IBMProvider
    IBMProvider.save_account(token='MY_API_TOKEN')
    

    The command above stores your credentials locally in a configuration file called qiskit-ibm.json. By default, this file is located in $HOME/.qiskit, where $HOME is your home directory. Once saved you can then instantiate the provider like below and access the backends:

    from qiskit_ibm_provider import IBMProvider
    provider = IBMProvider()
    
    # display current supported backends
    print(provider.backends())
    
    # get IBM's simulator backend
    simulator_backend = provider.get_backend('ibmq_qasm_simulator')
    

Load Account from Environment Variables

Alternatively, the IBM Provider can discover credentials from environment variables:

export QISKIT_IBM_TOKEN='MY_API_TOKEN'

Then instantiate the provider without any arguments and access the backends:

from qiskit_ibm_provider import IBMProvider
provider = IBMProvider()

Enable Account for Current Session

As another alternative, you can also enable an account just for the current session by instantiating the provider with the token.

from qiskit_ibm_provider import IBMProvider
provider = IBMProvider(token='MY_API_TOKEN')

Next Steps

Now you're set up and ready to check out some of the tutorials.

Contribution Guidelines

If you'd like to contribute to qiskit-ibm-provider, please take a look at our contribution guidelines. This project adheres to Qiskit's code of conduct. By participating, you are expect to uphold to this code.

We use GitHub issues for tracking requests and bugs. Please use our slack for discussion and simple questions. To join our Slack community, use the invite link here.

Authors and Citation

The Qiskit IBM Quantum Provider 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.

License

Apache License 2.0.

Metadata

Release files for qiskit-ibm-provider 0.11.0

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-ibm-provider 0.11.0
File Size Uploaded
qiskit_ibm_provider-0.11.0.tar.gz 244.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qiskit-ibm-provider 0.11.0
File Interpreter ABI Platform
qiskit_ibm_provider-0.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 494.8 kB

Release files / qiskit_ibm_provider-0.11.0.tar.gz

Download URL qiskit_ibm_provider-0.11.0.tar.gz
Size 244.8 kB
Tags Source
SHA-256 checksum
How to use checksums
31a29701120dd0b27e1d8e691b4e7262580cda6f85b85610697577920d8c2f0c
BLAKE2b-256 checksum
How to use checksums
3b75a3a940de9adbd2c9b85b12e8401a6cbf9b4b6b41d3b65fde64980eaa865e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / qiskit_ibm_provider-0.11.0-py3-none-any.whl

Download URL qiskit_ibm_provider-0.11.0-py3-none-any.whl
Size 249.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d84aff2df00d0642a9fcb53cf7f7442e62d65d3bbe13e191bc078b2ee474dc6
BLAKE2b-256 checksum
How to use checksums
a3862f775a9ce2514da2ad2b0a5e52640536cbd6dcc1b5e0f6a48297ede96dcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.11.0 This release

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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