computingvista-qservice
Python SDK chính thức của Computing Vista — submit OpenQASM từ Jupyter/VS Code local, chạy trên Computing Vista Cloud.
Cài đặt
pip install computingvista-qservice
Hoặc từ local clone (dev):
pip install -e .
Sử dụng
Lấy API key tại computingvista.com/dashboard/developer.
from computingvista_qservice import QuantumClient
qc = QuantumClient(token="qkey_live_...") # hoặc set env QUANTUM_SERVICE_TOKEN
print(qc.get_usage())
# {'used_shots': 2000, 'max_shots': 100000, 'remaining_shots': 98000}
result = qc.run_qasm("""
OPENQASM 2.0;
include "qelib1.inc";
qreg q[2];
creg c[2];
h q[0];
cx q[0],q[1];
measure q -> c;
""", shots=1000)
print(result["counts"])
run_qasm raise QuotaExceededError khi vượt hạn mức trial, QuantumServiceError cho lỗi khác.
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 computingvista_qservice-0.1.1.tar.gz.
File metadata
- Download URL: computingvista_qservice-0.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01f219c34b4ed1f1a076ed033337b3dddfdeeac11edbe3c4ea0a2fe30ce3bbc8
|
|
| MD5 |
bed4be1d3a22dd6ab460f591cd276424
|
|
| BLAKE2b-256 |
9089687f624a0544935a4990007ee4e666ae9bd0d08bfbb57e8c9f868137be3b
|
File details
Details for the file computingvista_qservice-0.1.1-py3-none-any.whl.
File metadata
- Download URL: computingvista_qservice-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d59681a035bc487c43d8c7ecb066ae0be1903db05cbeb287834b92aceef9583b
|
|
| MD5 |
b65d4f35429186c84e8fde3df270a9dd
|
|
| BLAKE2b-256 |
b31c34d34e5fefac9c01d1283f0d9e048f2f7dfa5e1d78e4c8bc03a34fdc7fb0
|