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.
- Visit: https://portal.topqad.1qbit-dev.com/
- Go through the registration process and log in.
- Click your profile picture in the top right.
- Select "Get refresh token".
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file topqad_sdk-0.2.10.tar.gz.
File metadata
- Download URL: topqad_sdk-0.2.10.tar.gz
- Upload date:
- Size: 84.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9a05cc2bbd56de4c304cf0295cc048c0d67c9c3fab35f3b7422553376a7dbf8
|
|
| MD5 |
a210d1f941d674bbd3cc6b5653d12f61
|
|
| BLAKE2b-256 |
2f9a29b08b458ac2dcd64729dba1c7f72329a4ebddb53ba9ea069d97d1f97948
|
File details
Details for the file topqad_sdk-0.2.10-py3-none-any.whl.
File metadata
- Download URL: topqad_sdk-0.2.10-py3-none-any.whl
- Upload date:
- Size: 121.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d9c91bd1bd2a6bada5e7f24478807ac0f87c9d18219633d97901298b9175b5d
|
|
| MD5 |
03ed60af472d7fa7a541443097647eba
|
|
| BLAKE2b-256 |
6523e49881c90c99f1f5c4e39fc7597cfa36e1ab1e3cbd1a22435e1a2e8ddbb8
|