Registry / ai-ml / sinter

sinter

JSON →
library1.16.0pypypi✓ verified 84d ago

Sinter is a Python library for sampling and decoding quantum error correction circuits using Stim, with integrated support for PyMatching and various decoders. Current version 1.15.0; released roughly monthly. It provides CLI tools and a Python API for collecting statistics, plotting error curves, and managing batch jobs.

pip install sinter
INSTALL
IMPORT
SIG · SINTER
S
sinter
ai-mlpythonv1.16.0
Install
12.5s avg
Import
430ms
Disk
332MB
Pass rate
4/ 10
Env Coverage4 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.16.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✓ 12.4s
py 3.11
✕ build_error
✓ 12.1s
py 3.12
✕ build_error
✓ 12.8s
py 3.13
✕ build_error
✓ 12.9s
py 3.9
✕ build_error
✕ build_error
332MB installed
● package 332MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sinter
import sinter
sinter.Collection
from sinter import Collection
sinter.Task
from sinter import Task
sinter.Stats
from sinter import Stats

Create a repetition code circuit, sample it with PyMatching decoder, and plot error rate vs physical error probability.

import sinter import stim tasks = [ sinter.Task( circuit=stim.Circuit.generated( 'repetition_code:memory', rounds=100, distance=5 ), decoder='pymatching', ) ] sample = sinter.collect( num_workers=4, max_errors=1_000, start_batch_size=100, tasks=tasks, ) print(sample) # Plot results fig, ax = sinter.plot.error_rate_vs_error_probability(sample) fig.savefig('plot.png')
sinter --version
Debug
Known issues
breakingIn sinter v1.10+, the `sinter.plot.error_rate_vs_error_probability` function changed its signature: the `collection` argument is now positional-only and `show` parameter is removed.
fix
Use `sinter.plot.error_rate_vs_error_probability(sample, ax=ax)` instead of passing collection as keyword or using `show=True`.
affects: >=1.10.0
deprecated`sinter.collect()` parameter `num_workers` is deprecated in favor of `num_processes`.
fix
Replace `num_workers=4` with `num_processes=4`.
affects: >=1.13.0
gotchaIf you don't install pymatching, sinter will raise a runtime error when trying to use 'pymatching' decoder. It is not installed by default.
fix
Install pymatching via `pip install pymatching` or use a different decoder like 'fusion_blossom' that doesn't require pymatching.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'sinter'
Sinter is not installed or installed in a different environment.
fix
Run `pip install sinter` in your active Python environment.
AttributeError: module 'sinter' has no attribute 'collect'
Outdated version of sinter (<0.1). The API changed significantly in earlier versions.
fix
Upgrade to latest version: `pip install --upgrade sinter`.
RuntimeError: Failed to decode: decoder 'pymatching' not available
pymatching library is not installed.
fix
Install pymatching: `pip install pymatching`.
Upgrade
Version history
1.16.0latest on PyPI · released May 22, 2026
Audit
Dependencies
stimrequiredCircuit generation and sampling engine
pymatchingoptionalDefault decoder for matching-based decoding
matplotliboptionalPlotting error curves
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
sinter — pip install sinter · libregistry