Skip to main content

Qiskit 2.0 adapter for GuoJi Quantum Cloud Platform

Project description

GJQ-Client

gjq-client is the Python SDK for CETC International Cornerstone Quantum Industry (Suzhou) Co., Ltd. (CETC-ICQ) Cloud Platform, providing Qiskit 2.0 integration with real quantum hardware.

Project Structure

src/gjq_client/
├── __init__.py                # Public API exports
├── _version.py                # Version info
├── gjq_runtime/               # Runtime service module
│   ├── gjq_runtime_service.py # Service entry
│   ├── sampler.py             # Sampler primitive
│   ├── estimator.py           # Estimator primitive
│   └── runtime_job.py         # Job status tracking
├── client/                    # Auth & communication module
│   ├── client_parameters.py   # JWT lifecycle & URL management
│   ├── backend_url_config.py  # URL decryption & config
│   ├── auth.py                # Auth header injection
│   ├── session.py             # HTTP retry session
│   ├── runtime.py             # REST API client
│   └── rest/                  # REST adapter layer
├── backend/                   # Backend models
│   ├── gjq_backend.py         # GJQBackend
│   ├── backend_configuration.py
│   └── backend_properties.py
└── utils/                     # Utilities
    ├── exceptions.py          # Exception classes
    ├── backend_converter.py   # Configuration → Target
    ├── backend_decoder.py     # Server data decoder
    └── generate_preset_pass_manager.py

📦 Installation

Requirements: Python >= 3.10, Qiskit >= 2.0.0

ONLY Qiskit 2.0+ SUPPORT NOW

# Install via PyPI
pip install gjq-client

# Or install from source
pip install .

🚀 Quick Start

from qiskit import QuantumCircuit
from gjq_client import GJQRuntimeService, Sampler, generate_preset_pass_manager

# 1. Authenticate and initialize RuntimeService
#    (API key required on first use, cached automatically afterwards.
#     Obtain your key from tiangongqs.com/cloud)
service = GJQRuntimeService(api_key="YOUR_API_KEY")

# 2. Select a quantum backend
backend = service.backend("target_quantum_machine")
# Or pick the least busy backend:
# backend = service.least_busy()

# 3. Build a quantum circuit
qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
qc.measure_all()

# 4. Transpile the circuit for the target backend
pm = generate_preset_pass_manager(backend=backend, optimization_level=2)
transpiled_qc = pm.run(qc)

# 5. Submit the job and retrieve results
sampler = Sampler(backend=backend)
job = sampler.run(transpiled_qc, shots=1024)

result = job.result()
print("Measurement results:", result.get("counts"))

📬 Contact

Changelog

See the full changelog in CHANGELOG.

📄 License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

gjq_client-0.1.4-cp310-abi3-win_amd64.whl (146.7 kB view details)

Uploaded CPython 3.10+Windows x86-64

gjq_client-0.1.4-cp310-abi3-win32.whl (136.0 kB view details)

Uploaded CPython 3.10+Windows x86

gjq_client-0.1.4-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (534.6 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

gjq_client-0.1.4-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (511.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

gjq_client-0.1.4-cp310-abi3-macosx_11_0_arm64.whl (158.6 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

gjq_client-0.1.4-cp310-abi3-macosx_10_9_x86_64.whl (152.0 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

gjq_client-0.1.4-cp310-abi3-macosx_10_9_universal2.whl (244.9 kB view details)

Uploaded CPython 3.10+macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file gjq_client-0.1.4-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: gjq_client-0.1.4-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 146.7 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for gjq_client-0.1.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ca3d04045b652f9e2f1b48b87b3041fb1b3173e1f0a398947ee23cbdc175ca72
MD5 191c237ad7b506737faf4fed755cce30
BLAKE2b-256 e6381f00262b30c13b9da9b0c176ea986b45e828fff70337e5413e0d26c71c56

See more details on using hashes here.

File details

Details for the file gjq_client-0.1.4-cp310-abi3-win32.whl.

File metadata

  • Download URL: gjq_client-0.1.4-cp310-abi3-win32.whl
  • Upload date:
  • Size: 136.0 kB
  • Tags: CPython 3.10+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for gjq_client-0.1.4-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 291b714e8cbd7ddddbe23af44ceeb2671fa2d8bc9ef5aee3a10b33a1a5ac841d
MD5 70594e4505e930746a3a6959c84bd4aa
BLAKE2b-256 3c2f25ed119f994968111fe424da73ac4b6a675bcfa22991a32bd846731edfec

See more details on using hashes here.

File details

Details for the file gjq_client-0.1.4-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gjq_client-0.1.4-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2fd7bdda4da7aa0964d522f8d837d6c73ed445c28e7fd14a3ae04de0b6ee8551
MD5 cb0e299e270af218eebbf5abcac888ed
BLAKE2b-256 b350a5631fa90ffe7be42b60369651b00c5da5b5ca4cc9fcd40def4ab98fb119

See more details on using hashes here.

File details

Details for the file gjq_client-0.1.4-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for gjq_client-0.1.4-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 e6c43872dd0faaed20163494ccd4c1ac0136274cc9518817989230a3f1b22b06
MD5 640ef6ebb844ef61e7a01627b8340dc5
BLAKE2b-256 1c2c14e619bf09087684d620fb1d2c704cd836d498dc5529c8b9b63aa2ab46b8

See more details on using hashes here.

File details

Details for the file gjq_client-0.1.4-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gjq_client-0.1.4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 334c16686bfa9874c9cdb2facacc40b1b5e8490acff76a85a47dd85725e02403
MD5 96ec9d0c0b39a156b12754cba734be04
BLAKE2b-256 c1d45b16c4217b03ccb695724be8cbeb7792330ce27d980250124759c5376e97

See more details on using hashes here.

File details

Details for the file gjq_client-0.1.4-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for gjq_client-0.1.4-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 68728e1bc04c87db28eae98f9fc265f855e4d3d40bde29a11e1e8d7f52b0ee1f
MD5 bd2958386a90e3c2d78aa7005a76bdbf
BLAKE2b-256 4b36aba307fd380024a18bb32ab0543a0fc301c20911df2635548c30019fd283

See more details on using hashes here.

File details

Details for the file gjq_client-0.1.4-cp310-abi3-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for gjq_client-0.1.4-cp310-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a38b4d689d6ebdbb9237d9c933ff0d14b7120cec7e91621e20a3244d200fbda7
MD5 573b2832afa6ab5defb987d2fbbc7287
BLAKE2b-256 92babdbee83f5f3f68caa31b6bad7e77845df239f7b33009b8f204a0b3b46954

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