Skip to main content

SDK for TopQAD

Project description

TopQAD SDK for Python

The code in this repository is intended to make access to the TopQAD platform as easy as writing Python!
This guide provides everything you need to set up your local development environment, run the demo script, and understand the core features of the SDK.


1. Development Setup

Follow these steps to set up a local environment for developing and testing the SDK.

a. Create and Activate a Virtual Environment

This creates an isolated Python environment for the project.

Open your terminal and navigate to the root directory of this project.

Create the virtual environment:
python3 -m venv .venv

Activate the environment:
macOS / Linux:
source .venv/bin/activate
Windows:
.\.venv\Scripts\activate

Your terminal prompt should now begin with (.venv).

Update pip:
python -m pip install -U pip


b. Install the Package in Editable Mode

This project uses pyproject.toml to manage dependencies. The following command will install the SDK in editable mode (-e) along with all development dependencies. This means any changes you make to the source code are immediately reflected in your environment.

pip install -e .


c. Get Your Refresh Token (Required for Authentication)

To use the SDK, you need a TOPQAD_REFRESH_TOKEN from the TopQAD portal.

  1. Visit: https://portal.topqad.1qbit-dev.com/
  2. Go through the registration process and log in.
  3. Click your profile picture in the top right.
  4. Select "Get refresh token".
  5. Copy the token shown.

⚠️ Security Note: Your refresh token is as sensitive as a password. Keep it safe and never commit it to source control.

Set the environment variable in your shell or put it in .env file in root:
macOS / Linux:
export TOPQAD_REFRESH_TOKEN="<PASTE_YOUR_TOKEN_HERE>"
Windows:
set TOPQAD_REFRESH_TOKEN="<PASTE_YOUR_TOKEN_HERE>"


d. Verify the Installation

Run the following to check that the topqad-sdk package is installed, see its version, and confirm the installation path:

pip show topqad-sdk

2. Running the Interactive Demo

To see the SDK in action, we have prepared an interactive Jupyter Notebook that demonstrates the core functionality of the Noise Profiler.

To run the demo, open and run the notebook located at:

Noise_Profiler_Demo.ipynb

This notebook will guide you through setting your authentication token and running a simulation.

License

This project is licensed under the Apache 2.0 License.

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

topqad_sdk-0.4.0.tar.gz (93.5 kB view details)

Uploaded Source

Built Distribution

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

topqad_sdk-0.4.0-py3-none-any.whl (131.9 kB view details)

Uploaded Python 3

File details

Details for the file topqad_sdk-0.4.0.tar.gz.

File metadata

  • Download URL: topqad_sdk-0.4.0.tar.gz
  • Upload date:
  • Size: 93.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for topqad_sdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 cb5ef0f039d60d0280471b72527ef692b0e450004baeff5cf9ccdea20a8f8361
MD5 f111b34907e1fe3f42e7e23c20953332
BLAKE2b-256 300b5256baf50714befe959edd81ced5243ad500f742507d4b691eb295674b3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for topqad_sdk-0.4.0.tar.gz:

Publisher: publish_to_pypi.yml on 1QB-Information-Technologies/topqad-sdk-for-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file topqad_sdk-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: topqad_sdk-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 131.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for topqad_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3127e429974402599395ce446bfd396b6b0c0b90282daf9b93b2c24cf909b4c
MD5 efdc1948bec849072949d5fbfa211bd6
BLAKE2b-256 c3c984fff10c301a794c849523c6031158a04f087ab02768d1655e0c69cabb39

See more details on using hashes here.

Provenance

The following attestation bundles were made for topqad_sdk-0.4.0-py3-none-any.whl:

Publisher: publish_to_pypi.yml on 1QB-Information-Technologies/topqad-sdk-for-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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