Choosing qec decoders

From AndyLiuin/QEC-Autoresearch-Skills · View interactive version

Choosing qec decoders is an AI agent skill from the GitHub repository AndyLiuin/QEC-Autoresearch-Skills. Provides guidance for choosing among QEC decoder backends such as ldpc, PyMatching, fusion-blossom, Chromobius, MWPF, tesseract-decoder, and MQT QECC based on artifact shape, code family, noise model, and validation goals.

How to use this skill

Skill file

Choosing QEC Decoders

What This Skill Is For

Use this skill when the main question is decoder selection, not decoder execution:

Core Routing Questions

Answer these before naming a backend:

  1. Is the primary artifact a graphlike detector error model, a raw parity-check matrix, a non-graphlike or hypergraph object, or a full circuit with heralded side information?
  2. Is the code family repetition, surface, color, generic CSS, or QLDPC?
  3. Is the noise model code-capacity-like, phenomenological, circuit-level, or erasure-aware?
  4. Do you need a fast benchmark baseline, an exact matching answer, a color-code-specialized decoder, or a hypergraph-capable route?
  5. Does the environment constraint rule out the package entirely?

Routing Defaults

Standard Workflow Checklist

  1. Read CODE0 for the current decoder-lane assumptions and open questions.
  2. Check CODE0 for the current backend fit summary.
  3. Classify the input artifact shape before discussing runtime or accuracy.
  4. Record which decoder constraints are scientifically acceptable for the task and which are not.
  5. Record why the selected backend fits better than the obvious alternatives.

Common Failure Modes

Treating graphlike matching as universal

Problem: a decoder that expects graphlike matching structure is proposed for a workload with hyperedges, rich correlations, or circuit-side heralding information.

Fix: stop and classify the artifact shape first. Do not flatten the problem just because a matching decoder is already installed.

Forgetting code-family specialization

Problem: a color-code-specific decoder is presented as a drop-in option for arbitrary CSS or QLDPC workloads.

Fix: record whether the backend is generic, color-code-specialized, or intentionally tuned to a narrower family.

Ignoring environment truth

Problem: a package is recommended without checking whether the current Python or wheel support makes it plausible in this repo.

Fix: use CODE0 and keep package fit separate from algorithmic desirability.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.