Maestro 0.2.5
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
Python Bindings

High-performance Python bindings via nanobind.

High-performance Python bindings via nanobind.

Maestro provides Python bindings that expose the core orchestration and simulation capabilities to Python. The bindings are built with nanobind for minimal overhead.

Installation

pip install .

Quick example

import maestro
qasm = """
OPENQASM 2.0;
include "qelib1.inc";
qreg q[2];
h q[0];
cx q[0], q[1];
"""
result = maestro.simple_execute(qasm, shots=1024)
print(f"Counts: {result['counts']}")
See also
Python Guide for the full API reference
Tutorial for more examples