Skip to main content

九章光量子真机云接入软件包(jiuzhang SDK)

Project description

jiuzhang SDK 路 涔濈珷鍏夐噺瀛愪簯骞冲彴 Python SDK

This code/ directory contains the Python package source for jiuzhang-sdk. The SDK talks to the JiuZhang cloud API only; Tianyan is reached by the cloud platform backend.

鏈?code/ 鐩綍鏄?jiuzhang-sdk 鐨?Python 婧愮爜宸ョ▼銆係DK 鍙皟鐢ㄤ節绔犱簯骞冲彴 API锛?澶╄骞冲彴鐢变簯骞冲彴鍚庡彴杞彂銆?

Install / 瀹夎

pip install --pre jiuzhang-sdk
pip install jiuzhang-sdk==0.1.0a15
pip install -e ".[dev,jupyter]"

Required Task Fields / 蹇呭~浠诲姟瀛楁

GBS submissions require project_id and device_id.

GBS 浠诲姟鎻愪氦蹇呴』甯?project_id 涓?device_id銆?

from jiuzhang import CloudClient, GBSParams

client = CloudClient(
    base_url="http://127.0.0.1:18081/api/v1",
    api_key="PQ-3f2c2a3b0f7a4a2ab1cdb0b7d2f1a9c4",
)

params = GBSParams(
    project_id="EXP-local-demo",
    device_id="PH_QC_04",
    mt=64,
    pump_energy_nj=2.0,
    squeezing_param=0.35,
)

result = client.run_gbs(params)

API Paths / API 璺緞

base_url may include /api/v1.

base_url 鍙互鍖呭惈 /api/v1銆?

POST /estimate
POST /tasks/submit
GET  /tasks/{task_id}

Environment / 鐜鍙橀噺

$env:JIUZHANG_API_KEY="your_api_key"
$env:JIUZHANG_BASE_URL="http://127.0.0.1:18081/api/v1"
$env:JIUZHANG_PROJECT_ID="EXP-local-demo"
$env:JIUZHANG_DEVICE_ID="PH_QC_04"

Local Mock / 鏈湴 Mock

python ..\local_test\mock_cloud_platform\mock_cloud_platform.py --port 18081 --mode standalone

Test / 娴嬭瘯

ruff format src tests
ruff check src tests
mypy src
pytest

License / 鎺堟潈

Proprietary. Copyright 漏 2026 JiuZhang Quantum.

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

jiuzhang_sdk-0.1.0a15.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

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

jiuzhang_sdk-0.1.0a15-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file jiuzhang_sdk-0.1.0a15.tar.gz.

File metadata

  • Download URL: jiuzhang_sdk-0.1.0a15.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jiuzhang_sdk-0.1.0a15.tar.gz
Algorithm Hash digest
SHA256 0e792951ba2f7d97dd7ba555b5c1468e76e30cdd36a12dea7d8fcbf3ef82355e
MD5 2b7df016ee770912b8dd0f71e1256515
BLAKE2b-256 8dc4bec2859fcd68da60b89570b8af4daccb939ef311ed8e6f206780b3f7fcf6

See more details on using hashes here.

File details

Details for the file jiuzhang_sdk-0.1.0a15-py3-none-any.whl.

File metadata

  • Download URL: jiuzhang_sdk-0.1.0a15-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jiuzhang_sdk-0.1.0a15-py3-none-any.whl
Algorithm Hash digest
SHA256 fcc60b0acd9781c6976161005239a1537792d616c73f970241e2a1d0fdc1b71e
MD5 986f8d57655b021668547c9289739194
BLAKE2b-256 3a03f001004bd5e5aa46a6834addac4d3098e4339fd47cafbbcf805fafc57e20

See more details on using hashes here.

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