Skip to main content

Qiskit IBM Quantum Provider for accessing the quantum devices and simulators at IBM

Project description

Qiskit IBM Quantum Provider

License CI Code style: black Coverage Status

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 at Qiskit.org. For questions that are more suited for a forum we use the Qiskit tag in Stack Exchange.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qiskit-ibm-provider-0.5.3.tar.gz (230.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qiskit_ibm_provider-0.5.3-py3-none-any.whl (232.5 kB view details)

Uploaded Python 3

File details

Details for the file qiskit-ibm-provider-0.5.3.tar.gz.

File metadata

  • Download URL: qiskit-ibm-provider-0.5.3.tar.gz
  • Upload date:
  • Size: 230.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for qiskit-ibm-provider-0.5.3.tar.gz
Algorithm Hash digest
SHA256 e9d43321e71316b811e8788ae2ce5ef0f1d1223bdd724091d712d2ad07a56d4a
MD5 1d4e98de6fec7d946bddb625f2766e14
BLAKE2b-256 6c4165024f0657e705e8782da63812a2b48d5571461a2d6f7acc03e77c7b8845

See more details on using hashes here.

File details

Details for the file qiskit_ibm_provider-0.5.3-py3-none-any.whl.

File metadata

File hashes

Hashes for qiskit_ibm_provider-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2a6f4c2911f38411c11ae8b67e71cda42cc26ec32c0204412d8c55411360b48d
MD5 a6a61ca98bfec3af116bb3c3579b5d73
BLAKE2b-256 46229597f496ccc3550c8c94e9058374df50d2f3e118bf1c92a823e09f44fed9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page