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

Chưa publish PyPI. Cài trực tiếp từ repo:

pip install "git+https://github.com/thinhqdinh/computingvista-qservice"

Hoặc từ local clone:

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.0.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.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file computingvista_qservice-0.1.0.tar.gz.

File metadata

  • Download URL: computingvista_qservice-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a872043e4c268de7c08aa3b6bdfc2f6cd3bcecd1853cdb5398f53a2f6824903c
MD5 d4ced9ad18ff63644d7f60147ae9ff9b
BLAKE2b-256 0070192518ec87222f5cc31338ec4e13235688763d284065b3ec9cf8a229bd2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for computingvista_qservice-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfbd4e82944751dbbee90533bd22d52c637aeff16791cf149f535be9f2c85d43
MD5 10c37df32040ea7813703b14134b3226
BLAKE2b-256 02256e8cfd97a4ef5d11fc5785ced715c99aa52b48ee999b408ddbd1e9c69bee

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

0.1.1

2 files

This release

0.1.0 This release

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