OpenParable
Skip to content
← Back to skills

Pymatching Decoder

Others
pymatching-decoder

Pymatching Decoder is an Agent Skill for general use published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Minimum-weight perfect matching decoder skill for surface code error correction

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/domains/science/quantum-computing/skills/pymatching-decoder/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/pymatching-decoder, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

PyMatching Decoder

Purpose

Provides expert guidance on minimum-weight perfect matching decoding for surface codes and other topological quantum error correction codes.

Capabilities

  • MWPM decoding for surface codes
  • Weighted edge matching
  • Detector error model processing
  • Logical error rate calculation
  • Integration with Stim simulations
  • Custom graph construction
  • Belief propagation integration
  • Parallelized decoding

Usage Guidelines

  1. Graph Construction: Build matching graph from detector error model
  2. Weight Assignment: Configure edge weights based on error probabilities
  3. Decoding Execution: Run MWPM algorithm on syndrome data
  4. Error Analysis: Calculate logical error rates from decoding results
  5. Optimization: Tune decoder parameters for specific code structures

Tools/Libraries

  • PyMatching
  • NetworkX
  • Stim
  • NumPy