Skip to main content

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.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faultscope-pymatching 0.2.12
File Size Uploaded Provenance Actions
faultscope_pymatching-0.2.12.tar.gz 164.9 kB With provenance Details for faultscope_pymatching-0.2.12.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for faultscope-pymatching 0.2.12
File Actions
faultscope_pymatching-0.2.12-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for faultscope_pymatching-0.2.12-cp310-abi3-win_amd64.whl
faultscope_pymatching-0.2.12-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for faultscope_pymatching-0.2.12-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
faultscope_pymatching-0.2.12-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for faultscope_pymatching-0.2.12-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
faultscope_pymatching-0.2.12-cp310-abi3-macosx_11_0_x86_64.whl CPython 3.10 abi3 macOS 11.0+ x86-64 Details for faultscope_pymatching-0.2.12-cp310-abi3-macosx_11_0_x86_64.whl
faultscope_pymatching-0.2.12-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for faultscope_pymatching-0.2.12-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 1.9 MB

Release files / faultscope_pymatching-0.2.12.tar.gz

Download URL faultscope_pymatching-0.2.12.tar.gz
Size 164.9 kB
Tags Source
SHA-256 checksum
How to use checksums
abaac0ef369f94e0af417559e4c93f88be7185b6725bd6873476dc3cde5eac71
BLAKE2b-256 checksum
How to use checksums
3c7d2bdb4d30bb2afa9cac0b75c9ec421a8082ca47807b24e0c3f5596aefb760
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 Oct 9, 2026.

Transparency log

Release files / faultscope_pymatching-0.2.12-cp310-abi3-win_amd64.whl

Download URL faultscope_pymatching-0.2.12-cp310-abi3-win_amd64.whl
Size 246.6 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d1add52d39c9f62f3fbfd4024e70128da8e70944ad18a8114774067bb845931d
BLAKE2b-256 checksum
How to use checksums
e395cac2175c63899c065f981c21234d7b1b7c75a898524a5d0f0fc513868a80
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 Oct 9, 2026.

Transparency log

Release files / faultscope_pymatching-0.2.12-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL faultscope_pymatching-0.2.12-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 423.7 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
f378cdf08090be5605636430d59bb832c983fbb2ab9ec1fe1702c14acec9217d
BLAKE2b-256 checksum
How to use checksums
3e55cae8fd5514c22982f2261f4a9e5237ff8383e49cb5a3470e949dafab37fa
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 Oct 9, 2026.

Transparency log

Release files / faultscope_pymatching-0.2.12-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL faultscope_pymatching-0.2.12-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 402.4 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
048fe41b761ef42902b2ffe68e4a3349c760f85bb9c490ea78ebf810a82bba0c
BLAKE2b-256 checksum
How to use checksums
5133f0e13528b13ec84c80740287da12e030ade1e060358185d69ab1be30700b
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 Oct 9, 2026.

Transparency log

Release files / faultscope_pymatching-0.2.12-cp310-abi3-macosx_11_0_x86_64.whl

Download URL faultscope_pymatching-0.2.12-cp310-abi3-macosx_11_0_x86_64.whl
Size 357.1 kB
Tags CPython 3.10 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
5d049dbfcd179a5dc8881931ca50f8b59524bc96d53d99c05ee6f596a15c047a
BLAKE2b-256 checksum
How to use checksums
efdcc1faee387cf88f21c9f535ef14683b4c933f34dcb9bf19245217d8cd814a
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 Oct 9, 2026.

Transparency log

Release files / faultscope_pymatching-0.2.12-cp310-abi3-macosx_11_0_arm64.whl

Download URL faultscope_pymatching-0.2.12-cp310-abi3-macosx_11_0_arm64.whl
Size 351.7 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
199713468002218c7808305b95bfe1c6216d28b600f558a220b104b9e68bc69c
BLAKE2b-256 checksum
How to use checksums
ec0e4c983841dcb35f8b8f6eeacc9915f2c1334914ec18ea30308d8ec0c9d672
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 Oct 9, 2026.

Transparency log

Security for faultscope-pymatching 0.2.12

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.

Select from 6 files

Attestation for faultscope_pymatching-0.2.12.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 Oct 9, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.2.12 This release

6 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page