Documentation
Complete guide to using the Quave quantum development platform
Getting Started with Quave SDK
The Quave SDK provides a Python interface for executing quantum circuits on various backends including simulators and real quantum hardware.
Installation
Install from PyPI
bash
pip install quave-sdkQuick Start
basic_usage.py
python
from qiskit import QuantumCircuit
from quave_sdk.quave import Quave
import asyncio
import os
# --- 1. Authentication ---
# initialize a quave object using environment variable authentication
email = os.getenv("EMAIL")
password = os.getenv("PASSWORD")
quave = Quave(email, password)
# or using command line inputs
quave = Quave()
# --- 2. View Backends ---
# see all available backends
backends = quave.list_backends()
# or for a specific QPU provider
backends = quave.list_backends("ibm")
# retrieve statistics for a specific backend
backend_stats = quave.get_backend_stats(backend_name="ibm_brisbane")
# --- 3. Simple Execution (No Parameters) ---
# build a simple circuit
qc = QuantumCircuit(1)
qc.h(0)
qc.t(0)
qc.measure_all()
# execute the circuit
job = quave.execute(circuit=qc, shots=10, backend="AerSimulator")
# check the status and retrieve counts
status = job.get_status()
if status == "COMPLETED":
execution = job.get_executions()[0]
counts = execution.get_counts()
# or wait for the job to be complete
asyncio.run(job.await_completion())
execution = job.get_executions()[0]
counts = execution.get_counts()