Skip to main content

Python SDK for the Q-Lab quantum experiment tracker

Project description

qlab-sdk

Python SDK for Q-Lab — the quantum experiment tracker.

Install

pip install qlab-sdk

Quick start

from qlab import QLabTracker

tracker = QLabTracker(
    api_key="qlab_YOUR_KEY",
    url="https://soqlab.com",
)

# One-shot log
tracker.log_run(
    circuit_name="bell-state",
    backend="ibm_brisbane",
    results={"00": 512, "11": 512},
    status="completed",
)

With Qiskit

from qlab import QLabTracker
from qiskit import QuantumCircuit
from qiskit_aer import AerSimulator

tracker = QLabTracker(api_key="qlab_YOUR_KEY", url="https://soqlab.com")
sim = AerSimulator()

with tracker.run("bell-circuit", project="my-project") as run:
    qc = QuantumCircuit(2)
    qc.h(0)
    qc.cx(0, 1)
    qc.measure_all()

    run.capture_circuit(qc)
    run.log(parameters={"shots": 1024})

    job = sim.run(qc, shots=1024)
    run.log(results=job.result().get_counts(), status="completed")

No external dependencies. Works with Python 3.9+.

Project details


Download files

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

Source Distribution

qlab_sdk-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

qlab_sdk-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qlab_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for qlab_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eaa80500bb886e888236b92d3b25efd307e73342fb077abe5879dc9273971429
MD5 15ced62d8cb7e1e528dd6dec43e82554
BLAKE2b-256 ac9aa2240fddfb4069728bcdec8a2868441d5b6d78128714ded66247b1ce6f37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qlab_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for qlab_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 130e4d256e853db225daf5f367af71eb8a9cbf550e8543490b65b90813af13c6
MD5 39bcf971f29c61ec352e9db31b60470d
BLAKE2b-256 c199418ffcb0b923e8e47e50feeda4dda73144b45db865a309e05bcb8ed5159b

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