Skip to main content

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

computingvista_qservice-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

computingvista_qservice-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for computingvista_qservice-0.1.1.tar.gz
Algorithm Hash digest
SHA256 01f219c34b4ed1f1a076ed033337b3dddfdeeac11edbe3c4ea0a2fe30ce3bbc8
MD5 bed4be1d3a22dd6ab460f591cd276424
BLAKE2b-256 9089687f624a0544935a4990007ee4e666ae9bd0d08bfbb57e8c9f868137be3b

See more details on using hashes here.

File details

Details for the file computingvista_qservice-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for computingvista_qservice-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d59681a035bc487c43d8c7ecb066ae0be1903db05cbeb287834b92aceef9583b
MD5 b65d4f35429186c84e8fde3df270a9dd
BLAKE2b-256 b31c34d34e5fefac9c01d1283f0d9e048f2f7dfa5e1d78e4c8bc03a34fdc7fb0

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

This release

0.1.1 This release

2 files

0.1.0

2 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