qbraid-core
Python library providing core abstractions for software development within the qBraid ecosystem, and a low-level interface to a growing array of qBraid cloud services. The qbraid-core package forms the foundational base for the qBraid CLI, the qBraid SDK, and qBraid Lab.
You can find the latest, most up to date, documentation here, including a list of services that are supported.
See also: qbraid-core-js
Getting Started
You can install qbraid-core from PyPI with:
python -m pip install qbraid-core
Local configuration
After installing qbraid-core, you must configure your account credentials:
- Create a qBraid account or log in to your existing account by visiting account.qbraid.com
- Navigate to Account > API Keys in the left-sidebar, and then click "Create API Key". See API Key docs.
- Save your API key from step 2 in local configuration file. On Linux and macOS, this file is located at
~/.qbraid/qbraidrc, where~corresponds to your home ($HOME) directory. On Windows, the equivalent default location is%USERPROFILE%\.qbraid\qbraidrc.
[default]
api-key = YOUR_KEY
url = https://api-v2.qbraid.com/api/v1
Or generate your ~/.qbraid/qbraidrc file via the qbraid-core Python interface:
>>> from qbraid_core import QbraidSessionV1
>>> session = QbraidSessionV1(api_key='API_KEY')
>>> session.save_config()
>>> session.get_available_services()
['agents', 'compute', 'environments', 'projects', 'runtime', 'skills', 'storage']
Other credential configuration methods are available using the qBraid-CLI.
Verify setup
After configuring your qBraid credentials, verify your setup by running the following from a Python interpreter:
>>> import qbraid_core
>>> quantum_runtime_client = qbraid_core.client('runtime')
>>> devices = quantum_runtime_client.list_devices()
>>> for device in devices:
... print(device.qrn, device.status)
Community
- For feature requests and bug reports: Submit an issue
- For discussions and/or specific questions about qBraid services, join our discord community
- For questions that are more suited for a forum, post to Stack Overflow with the
qbraidtag.
Metadata
Release files for qbraid-core 0.6.26
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qbraid_core-0.6.26.tar.gz | 567.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qbraid_core-0.6.26-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.0 MB
Release files / qbraid_core-0.6.26.tar.gz
| Download URL | qbraid_core-0.6.26.tar.gz |
|---|---|
| Size | 567.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26881c9a39455cad7851a712a5e2e3dd97ff87ee5bdb30b069a4887265364233
|
|
BLAKE2b-256 checksum How to use checksums |
abebcb64ffe46a3f48058cb41f29a4d46d2c3d7acb5b5fbdfe266e041e8daff5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / qbraid_core-0.6.26-py3-none-any.whl
| Download URL | qbraid_core-0.6.26-py3-none-any.whl |
|---|---|
| Size | 439.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ec98d05e5d0490b18c95f2a33b136d79ff8bae72bc6f5399864c2f575f639b7
|
|
BLAKE2b-256 checksum How to use checksums |
f20b7c4375e57f630fbe949035b55688ca0b5a0b502e65ea4fe1b37a9a65a8ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|