faultscope-pymatching
Official optional FaultScope PyMatching backend.
This package builds a native decoder from FaultScope graphlike detector error
problems. Current FaultScope problems cross the extension boundary through the
zero-copy native graphlike construction PyCapsule ABI v1; older or third-party
problem objects retain the Python attribute compatibility path. The resulting
decoder is exposed through the separate FaultScope native decoder PyCapsule ABI
V4. The factory declares [Packed]; each private worker owns an exclusive
native solver and receives all batches through one tagged callback. It uses pinned
PyMatching sparse-blossom C++ source internally; it does not call the Python
PyMatchingDecoder hot path. Independent parallel edges are merged only when
they have the same detector endpoints and logical-observable support. The
adapter rejects conflicting logical effects because PyMatching cannot preserve
both effects on one simple-graph edge.
NativePyMatchingDecoder.from_graphlike_problem(...) accepts a precompiled
view, including validated multi-component hints that share one canonical
dem_edge_index. These components are an uncorrelated matching approximation;
canonical DEM sampling remains outside this backend. Construction summaries
report canonical dem_edge_count, pre-merge graphlike_edge_count, and
post-merge solver_edge_count separately.
Hotspot attribution is not part of the decoder input. FaultScope records the edge-event trace in its own sidecar while this backend receives only packed detector syndrome rows.
Dynamic native error views remain valid until the associated decoder state is dropped. The backend retains every dynamic error message in state-owned storage to keep concurrent callback consumption safe, so repeated errors retain memory until state drop. ABI consumers should copy error text promptly.
Installation
Install FaultScope first using the installation guide. With the same virtual environment active, install the native backend from PyPI:
pip install faultscope_pymatching
python -I -m faultscope.backends status
Prebuilt wheels require no Rust or C++ compiler. The Python pymatching package
is separate from this native backend and does not provide
NativePyMatchingDecoder.
Build from Source for Development
For backend development or a platform without a compatible wheel, use Rust, Git, and a C++20 compiler. From the FaultScope repository root with your virtual environment active and the base package installed:
python -m pip install "maturin>=1.7,<2"
python -m pip install -e backends/faultscope-pymatching --no-build-isolation
python -I -m faultscope.backends status
If the PyMatching source is already checked out, set
NPSIM_PYMATCHING_SOURCE_DIR=/path/to/PyMatching before building. Otherwise the
build script clones PyMatching v2.4.0 into Cargo's build output directory.
Metadata
Release files for faultscope-pymatching 0.2.11
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 |
|---|---|---|---|---|
| faultscope_pymatching-0.2.11.tar.gz | 142.1 kB | With provenance | Details for faultscope_pymatching-0.2.11.tar.gz |
Built distributions (wheels)
Total release size: 1.9 MB
Release files / faultscope_pymatching-0.2.11.tar.gz
| Download URL | faultscope_pymatching-0.2.11.tar.gz |
|---|---|
| Size | 142.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b67e0e6ff70544a00a7beeb8cae22f03d5119a9d0eb48370c927cad45d170f18
|
|
BLAKE2b-256 checksum How to use checksums |
b6866abe307cff975d4923b06a9fd57da084fd5f03d3b63486067bc2ab6b21b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency logRelease files / faultscope_pymatching-0.2.11-cp310-abi3-win_amd64.whl
| Download URL | faultscope_pymatching-0.2.11-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 235.2 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
5c8306855bf8bca1d1aa442ba187c6d249eb80f2dbe5c5211344a275bb815ca2
|
|
BLAKE2b-256 checksum How to use checksums |
de6fbbfdcb20bc02c5d0ebfe730423cc19220e0243ef98d6b4d03681aae83f0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency logRelease files / faultscope_pymatching-0.2.11-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | faultscope_pymatching-0.2.11-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 414.2 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a3b27d63683ce78d425cc06b02aa707c844819ccc689b3c98f8fc85a302f3e6b
|
|
BLAKE2b-256 checksum How to use checksums |
192eca8dacd1260e3d7e0a717d3fdeb909253471bb06d14095d88f037c09974d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency logRelease files / faultscope_pymatching-0.2.11-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | faultscope_pymatching-0.2.11-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 392.9 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
f7b23eba9d72b3229bc452d81e02e95a93bf6d2fb8f76022a84ea51e64e638d6
|
|
BLAKE2b-256 checksum How to use checksums |
5e812936ecadfc2adbc33c40f6278e9aad1d9fd79e9140a7d00223f011e5f8e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency logRelease files / faultscope_pymatching-0.2.11-cp310-abi3-macosx_11_0_x86_64.whl
| Download URL | faultscope_pymatching-0.2.11-cp310-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 345.8 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
b11b0e32d073906e9d78a517cf375616606a028f710f6964b7199b7cca74867c
|
|
BLAKE2b-256 checksum How to use checksums |
a9a496e086c431feaad8320900941203f3b1fd946edfbf9154847135c71e6b6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency logRelease files / faultscope_pymatching-0.2.11-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | faultscope_pymatching-0.2.11-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 340.4 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
28a7080c715d4ce60247bcf9229971e3665db641619bae55cc97dd2f7638305c
|
|
BLAKE2b-256 checksum How to use checksums |
eb35f939fe20e676609837830f50c4515dce792f383d824275b1f7c2ef30c48a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency logSecurity for faultscope-pymatching 0.2.11
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
All 6 files in this release have been uploaded with provenance metadata.
Attestation for faultscope_pymatching-0.2.11.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 Sep 28, 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.