deltakit-maestro
Qoro Maestro simulator backend for Riverlane Deltakit QEC circuits.
A thin adapter over maestro.sinter. A Deltakit Circuit is converted to Stim with
as_stim_circuit():
| From the noisy Stim circuit | Goes to |
|---|---|
noisy stim.Circuit (or with its gate noise stripped) |
Maestro, which executes it |
hardware noise layers (coherent, t1) or rate overrides |
a maestro.NoiseModel |
| the Pauli twirl of everything that is simulated | the decoder's detector error model |
The result comes back as raw measurements, detection events, or Sinter statistics.
Every run is simulated by Maestro. With the default simulation_type=None the
simulation type follows the noise:
| Run | Maestro simulation type |
|---|---|
'pauli' (rate overrides included) or 'none' |
Stabilizer, sampled on Pauli frames |
any run with t1= but no coherent noise |
Stabilizer, shot by shot (T1 decay is not a Pauli channel) |
'coherent' or 'full' |
MatrixProductState |
any run, with simulation_type= set |
that simulation type |
backend.config_for(noise_type, **noise).simulation_type says which one a run uses.
Pauli frames sample a Clifford circuit with Pauli noise as fast as Stim does; coherent
over-rotations, which no Clifford simulator can run, need the matrix product state.
Install
Needs Python 3.10–3.13 (deltakit requires <3.14).
uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install -e ".[examples]" # examples extra adds pymatching
Verify:
python -c "from deltakit_maestro import MaestroBackend; print(MaestroBackend())"
Quick start
# Import deltakit before pymatching: the other way round, Deltakit's circuit builders fail.
from deltakit.circuit.gates import PauliBasis
from deltakit.explorer.codes import RotatedPlanarCode, css_code_memory_circuit
from deltakit.explorer.qpu import QPU, SI1000Noise
import sinter
from deltakit_maestro import MaestroBackend
code = RotatedPlanarCode(width=3, height=3)
circuit = css_code_memory_circuit(code, num_rounds=3, logical_basis=PauliBasis.Z)
noisy = QPU(circuit.qubits, noise_model=SI1000Noise(p=0.01)) \
.compile_and_add_noise_to_circuit(circuit)
backend = MaestroBackend() # Stabilizer for Pauli runs, MPS (χ=32) for coherent ones
# 1. Detection events straight from Maestro
sampler = backend.compile_sampler(noisy, seed=1)
dets, obs = sampler.sample_detection_events(1000)
# decode against sampler.task.detector_error_model
# 2. Sinter
stats = sinter.collect(
num_workers=4,
tasks=[backend.as_sinter_task(noisy, json_metadata={'p': 0.01})],
custom_decoders=backend.sinter_decoders(decoder='pymatching'),
max_shots=10_000,
)
# 3. Raw measurements (and detection events) in one call
result = backend.simulate(noisy, shots=1000)
result.measurements # (1000, n_meas) uint8, Stim record order
# 4. Coherent noise, and its Pauli twirl to compare against
coherent = backend.simulate(noisy, shots=300, noise_type='coherent')
twirl = backend.simulate(backend.twirled_circuit(noisy, noise_type='coherent'), shots=100_000)
The guide covers each of these in depth: sampling and Sinter, the noise modes, the decoder's detector error model, and coherent noise with the bond dimension it needs.
Learn more
- Documentation:
- Guide: sampling and Sinter, how each run is simulated, the noise modes and overrides, the decoder's detector error model, coherent noise and its calibration against SI1000, the MPS bond dimension, performance, and gotchas.
- Examples: a notebook with plots of coherent noise on the d=3 surface code, and scripts for the noise modes, a plain Stim circuit, coherent noise on a repetition code, a surface code sweep, every Deltakit code family, and the bond dimension, each shown with its output.
- API reference.
- Maestro docs.
- Changelog.
- Contributing: running the tests and building the docs.
License
GPL-3.0, like Maestro. See LICENSE.
Metadata
Release files for deltakit-maestro 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deltakit_maestro-0.1.0.tar.gz | 237.5 kB | With provenance | Details for deltakit_maestro-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deltakit_maestro-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for deltakit_maestro-0.1.0-py3-none-any.whl |
Total release size: 263.2 kB
Release files / deltakit_maestro-0.1.0.tar.gz
| Download URL | deltakit_maestro-0.1.0.tar.gz |
|---|---|
| Size | 237.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67456791421ea6104f828faa784cebf561c82c53d09e02162016fc3fb330cae3
|
|
BLAKE2b-256 checksum How to use checksums |
f791de23ffad6dbf039e7af98910439f417cc9343782bf75566d8d3a82ab5cd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / deltakit_maestro-0.1.0-py3-none-any.whl
| Download URL | deltakit_maestro-0.1.0-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85cd85b182f47b594f2e910c8c9706ccae9fd573c7e88e259e24bd58b1fafd13
|
|
BLAKE2b-256 checksum How to use checksums |
76c1494f584e6f87dc407e8f20eae2b479a1dc2f2045f31a200bb6a41176c5f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for deltakit-maestro 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for deltakit_maestro-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.