Skip to main content

Quantum program execution engine with built-in performance monitoring

Project description

qedclib

A quantum program execution engine with built-in performance monitoring. Execute quantum circuits at scale across multiple backends with automatic metrics collection, parallel GPU execution, and detailed per-circuit timing.

Install

pip install qedclib

Quick Example

import qedclib

# Initialize with the quantum computing API
qedclib.initialize("qiskit")
import execute as ex

# Configure the execution backend
ex.set_execution_target(backend_id="qasm_simulator")

# Build and execute circuits
from qiskit import QuantumCircuit

circuits = []
for n in [3, 5, 8]:
    qc = QuantumCircuit(n, n)
    qc.h(0)
    for i in range(n - 1):
        qc.cx(i, i + 1)
    qc.measure(range(n), range(n))
    circuits.append(qc)

job_id, result = ex.execute_circuits(circuits, num_shots=1000)

for i, counts in enumerate(result.get_counts()):
    print(f"Circuit {i}: {sorted(counts.items(), key=lambda x: -x[1])[:3]}")

Features

  • Multi-backend execution — run circuits on Qiskit simulators (Aer), IBM hardware, IonQ, IQM, and CUDA-Q (local GPU, multi-GPU, NVIDIA Quantum Cloud) through a single API
  • Automatic performance metrics — execution time, elapsed time, circuit depth, gate counts, and fidelity metrics are collected per-circuit and aggregated per-group, with standard deviations
  • Per-circuit timing — accurate individual circuit timing extracted from backend-specific result objects (simulator metadata, IBM execution spans, hardware elapsed time)
  • Batched execution — memory-efficient execution for large sweeps via max_batch_size, with automatic create-execute alternation to control memory pressure on GPU backends
  • Multi-GPU parallel execution — distribute circuits across GPUs using MPI with configurable modes (one GPU per circuit, multiple GPUs per circuit, or hybrid)
  • Robust job management — automatic retry with configurable limits, job status polling with comfort indicators, result count validation, and graceful handling of cancelled or failed jobs
  • Result handlers — plug in custom per-circuit processing (fidelity computation, expectation values, etc.) that runs automatically as results arrive
  • Volumetric benchmarking plots — built-in visualization of performance across circuit widths and depths

Documentation

  • qedclib Guide — API reference, execution paths, metrics flow, and backend configuration
  • Full Documentation — includes the benchmark suite, setup guides, and platform-specific instructions

Examples

See qedclib-examples for standalone usage examples including parameter sweeps, backend switching, batch scaling, and metrics collection.

Part of the QED-C Benchmarks

qedclib is the execution engine behind the QED-C Application-Oriented Benchmarks suite. If you want the full benchmark suite (17 benchmarks, notebooks, and examples), clone the repository:

git clone https://github.com/SRI-International/QC-App-Oriented-Benchmarks.git
cd QC-App-Oriented-Benchmarks
pip install -e .

License

Apache 2.0

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

qedclib-2.0.2.tar.gz (145.5 kB view details)

Uploaded Source

Built Distribution

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

qedclib-2.0.2-py3-none-any.whl (161.1 kB view details)

Uploaded Python 3

File details

Details for the file qedclib-2.0.2.tar.gz.

File metadata

  • Download URL: qedclib-2.0.2.tar.gz
  • Upload date:
  • Size: 145.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for qedclib-2.0.2.tar.gz
Algorithm Hash digest
SHA256 55f9ad7c86541fa44b0c485f1b9784ca9e780e477846eabc4f679c030f6cfef7
MD5 4b082f512bd3a0018bba8ebf5d8c1cf5
BLAKE2b-256 a4f68c34a68d0fd4870d9bff48226b808c8c77ad85756bbcdf89df2b3a4279ae

See more details on using hashes here.

File details

Details for the file qedclib-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: qedclib-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 161.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for qedclib-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0fca3bb828a6b4c1e539118eca227172f2eec61bea99100731c1e031d9196e00
MD5 f91cfc4f634799d7a3eadf2cd064e094
BLAKE2b-256 9819d1d9809689665f511af6016c2167dd1e347e2a49ac092169687d96d884a9

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