Skip to main content

qbraid-core

Documentation codecov PyPI version Python verions GitHub

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:

  1. Create a qBraid account or log in to your existing account by visiting account.qbraid.com
  2. Navigate to Account > API Keys in the left-sidebar, and then click "Create API Key". See API Key docs.
  3. 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)

Contributing

CI runs on demand, not on every push: test locally (tox -e unit-tests, tox -e format-check), then add the ci label to the PR when it is about to be merged. Once labelled, each later push re-runs it. Publish and Pre-release run the full test grid and the agent contract matrix before uploading, so there is no CI on push to main. Secret Scan is the exception and runs on every PR. Any workflow can also be started by hand from the Actions tab.

Community

Metadata

Release files for qbraid-core 0.6.58

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

Source distribution (sdist)

Source distribution for qbraid-core 0.6.58
File Size Uploaded Provenance Actions
qbraid_core-0.6.58.tar.gz 1.3 MB Without provenance Details for qbraid_core-0.6.58.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qbraid-core 0.6.58
File Interpreter ABI Platform Actions
qbraid_core-0.6.58-py3-none-any.whl Python 3 none any Details for qbraid_core-0.6.58-py3-none-any.whl

Total release size: 2.4 MB

Release files / qbraid_core-0.6.58.tar.gz

Download URL qbraid_core-0.6.58.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
2fdc82bfce2e471be893b0e57dbe5bb2ee2c348fa0346132ce983dc88669f64b
BLAKE2b-256 checksum
How to use checksums
e028db2a368fe51636af07f2eec41c666c312ca22c7a44aaaa2b2a3509fefbaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qbraid_core-0.6.58-py3-none-any.whl

Download URL qbraid_core-0.6.58-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9d4aa45c164522098c9df16a3c8f6cb178a9ea52b9b1a167e42cac6f8e66099f
BLAKE2b-256 checksum
How to use checksums
7a462207c01358f7280a528012f7bef12a12e36fe6d7354d509d9190f4de172e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for qbraid-core 0.6.58

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.58 This release

2 release files No provenance

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