Skip to main content

TopQAD™ SDK by 1QBit®

The TopQAD™ SDK by 1QBit® is a Python software development kit for the TopQAD automated quantum design platform, used to design fault-tolerant quantum computers and quantum processors. With it you can estimate the resources a quantum algorithm needs, compile quantum circuits, and benchmark fault-tolerant quantum computing protocols under realistic hardware noise.

The TopQAD SDK is developed and owned by 1QBit (1QB Information Technologies Inc.).

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.


3. Logging Setup

The SDK supports two ways to configure logging:

  1. Using the TOPQAD_LOG_LEVEL Environment Variable: Set the desired logging level (e.g., INFO, DEBUG, WARNING) in your environment:

    export TOPQAD_LOG_LEVEL=DEBUG
    
  2. Programmatically in Your Code: You can configure the logging level directly in your Python script:

    import logging
    logging.getLogger("topqad_sdk").setLevel(logging.DEBUG)
    

By default, logging is disabled unless explicitly configured using one of the above methods.

SDK Documentation

The SDK documentation contains API references, guides, and examples for interacting with the SDK.

From the project root, run:

cd docs
make html

Once the build completes, open the generated homepage in your browser:

open _build/html/index.html

License and Trademarks

© 2025–2026 1QB Information Technologies Inc.

This project is licensed under the Apache 2.0 License. See NOTICE for attribution notices.

1QBit is a registered trademark of 1QB Information Technologies Inc. in Canada and the United States. The 1QBit logo, Q design and TopQAD are trademarks of 1QB Information Technologies Inc. The Apache 2.0 License does not grant permission to use these trademarks (see Section 6 of the License).

Metadata

Release files for topqad-sdk 0.5.1

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

Source distribution (sdist)

Source distribution for topqad-sdk 0.5.1
File Size Uploaded
topqad_sdk-0.5.1.tar.gz 189.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for topqad-sdk 0.5.1
File Interpreter ABI Platform
topqad_sdk-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 337.0 kB

Release files / topqad_sdk-0.5.1.tar.gz

Download URL topqad_sdk-0.5.1.tar.gz
Size 189.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1614b45a215920b700cbc8d8cf0b6f991cce60c54a1aadc7f6221637ff6f991c
BLAKE2b-256 checksum
How to use checksums
95f01f72514703033efa416b13bc6718318522396efcdff6c22896da2bec2804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / topqad_sdk-0.5.1-py3-none-any.whl

Download URL topqad_sdk-0.5.1-py3-none-any.whl
Size 147.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f0f238a8282d83843194dff0f581065cdfe9a508ef1626eca8e3dd2e2a00678
BLAKE2b-256 checksum
How to use checksums
cf5e3ba18ea79d5d4bf018efa2b8a8e2805f1f0f73f3d9291df6860bc0b6edbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

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