
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
qiskit-ibm-experiment
Advanced tools
Qiskit IBM Experiment service for accessing the quantum experiment interface at IBM
Qiskit is an open-source SDK for working with quantum computers at the level of circuits, algorithms, and application modules.
This project contains a service that allows accessing the IBM Quantum experiment database.
The provider can be installed via pip:
pip install qiskit-ibm-experiment
Create an IBM Quantum account or log in to your existing account by visiting the IBM Quantum login page.
Ensure you have access to the experiment database.
Copy (and/or optionally regenerate) your API token from your IBM Quantum account page.
Take your token from step 2, here called MY_API_TOKEN
, and save it by calling IBMExperimentService.save_account()
:
from qiskit_ibm_experiment import IBMExperimentService
IBMExperimentService.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 experiment service without using the API token:
from qiskit_ibm_experiment import IBMExperimentService
service = IBMExperimentService()
# display current supported backends
print(service.backends())
# get the latest experiments in the DB
experiment_list = service.experiments()
You can also save specific configuration under a given name:
from qiskit_ibm_experiment import IBMExperimentService
IBMExperimentService.save_account(name='my_config', token='MY_API_TOKEN')
And explicitly load it:
from qiskit_ibm_experiment import IBMExperimentService
service = IBMExperimentService(name='my_config')
# display current supported backends
print(service.backends())
Alternatively, the IBM Provider can discover credentials from environment variables:
export QISKIT_IBM_EXPERIMENT_TOKEN='MY_API_TOKEN'
export QISKIT_IBM_EXPERIMENT_URL='https://auth.quantum-computing.ibm.com/api'
Then instantiate the provider without any arguments and access the backends:
from qiskit_ibm_experiment import IBMExperimentService
service = IBMExperimentService()
Environment variable take precedence over the default account saved to disk via save_account
,
if one exists; but if the name
parameter is given, the environment variables are ignored.
As another alternative, you can also enable an account just for the current session by instantiating the service with the token
from qiskit_ibm_experiment import IBMExperimentService
service = IBMExperimentService(token='MY_API_TOKEN')
If you'd like to contribute to IBM Quantum Experiment Service, 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.
Now you're set up and ready to check out some of the other examples from our Qiskit Tutorial repository.
The Qiskit IBM Quantum Experiment Service 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.
FAQs
Qiskit IBM Experiment service for accessing the quantum experiment interface at IBM
We found that qiskit-ibm-experiment demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.