SDK to interact with managed services on the Kipu Quantum Hub.
Project description
Kipu Quantum Hub Service SDK
Installation
The package is published on PyPI and can be installed via pip:
pip install --upgrade qhub-service
Usage
import os
from qhub.service.client import HubServiceClient
service_endpoint = "..."
access_key_id = "..."
secret_access_key = "..."
# Create a new HubServiceClient instance
client = HubServiceClient(service_endpoint, access_key_id, secret_access_key)
# Start a new service execution
service_execution = client.run(request={"values": [2], "shots": 100})
# Wait for the service execution to finish (blocking)
service_execution.wait_for_final_state()
status = service_execution.status
ended_at = service_execution.ended_at
print(f"Service execution finished at '{ended_at}' with status '{status}'")
# Use the client to retrieve a service execution by its ID
service_execution = client.get_service_execution("0030737b-35cb-46a8-88c2-f59d4885484d")
# Get the results of the service execution
result = service_execution.result()
# Get the logs of the service execution
logs = service_execution.logs()
# List the result files
files = service_execution.result_files()
# Download a result file
service_execution.download_result_file(files[0], os.getcwd())
License
Apache-2.0 | Copyright 2026-now Kipu Quantum GmbH
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qhub_service-1.2.2.tar.gz
(15.1 kB
view details)
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 qhub_service-1.2.2.tar.gz.
File metadata
- Download URL: qhub_service-1.2.2.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d23f8e96392a338014e4f2116e6b9303075e9d66eaae4677a835831abfdb714a
|
|
| MD5 |
2a02072106ac985ef700f1145aca64a7
|
|
| BLAKE2b-256 |
fb9322d857f2625dc9b36f722db62c42b6905477c1d1601fe12dad390ef048e0
|
File details
Details for the file qhub_service-1.2.2-py3-none-any.whl.
File metadata
- Download URL: qhub_service-1.2.2-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08ff1356d087b7508509a4823f16bf62c308e390fcc6b1bed7fd745186bc9e33
|
|
| MD5 |
d6cb0956e910ad816bbbacb8870a0b0a
|
|
| BLAKE2b-256 |
fc202ff1396e217dace0e46b168350f3563d94d8344d473a23e36cb0979ee861
|