Planning qec workflows with mqt qecc

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

Planning qec workflows with mqt qecc is an AI agent skill from the GitHub repository AndyLiuin/QEC-Autoresearch-Skills. Guides use of MQT QECC for toolkit-native code, decoder, color-code, and state-preparation workflows while keeping clear boundaries with Stim-native and qLDPC-native lanes.

How to use this skill

Skill file

Planning QEC Workflows With MQT QECC

What This Skill Is For

Use this skill when the task starts from MQT QECC's own toolkit objects and

workflow families instead of a finished Stim detector-model artifact:

Stim-first tooling.

When To Use It Versus Alternatives

Use this skill when the main request is about:

mqt.qecc.Code,

of the scientific method,

MQT color-code lane,

the final circuit.

Use CODE0 when the first

question is decoder routing across several backends.

Use CODE0

when the task is broader code construction and structural analysis rather than

MQT-specific execution planning.

Use CODE0

when the workflow already starts from a Stim circuit or detector error model.

Required Artifacts And Assumptions

Expected inputs:

preparation, or ECC-transformed circuits,

acceptable,

preparation circuit, or transformed OpenQASM circuit.

Expected outputs:

should hand off to Stim, PyMatching, or another decoder,

Assumptions to make explicit:

rewriting,

Standard Workflow Checklist

  1. Read CODE0 before picking MQT QECC.
  2. State which lane is intended: Code plus UFHeuristic, LightsOut

color-code decoding, state-preparation synthesis, or apply_ecc.

  1. Write down the code family, input artifact shape, and acceptable noise-model

simplifications.

  1. Keep toolkit-native artifacts explicit instead of flattening everything into

a Stim DEM story.

  1. Record whether the requested workflow stays local to MQT QECC or needs a

later handoff into another backend.

  1. Treat current support in this repo as documentation-first until a real

adapter, smoke test, and health-check path exist.

Validation Loop

Before closing work:

  1. confirm the selected MQT lane matches the task instead of being a generic

"more QEC tools" choice,

  1. confirm the code family and noise assumptions are explicit,
  2. confirm any handoff to Stim or another decoder is recorded as a boundary,

not hidden,

  1. confirm no claim implies that MQT QECC is already integrated in the repo's

executable baseline.

Common Issues And Fixes

Flattening toolkit-native work into DEM-only language

Problem: an MQT workflow gets described as though it were just another

detector-model decoder.

Fix: keep Code, syndrome, color-code lattice, or CSS-synthesis artifacts

visible. The point of MQT QECC is broader than a DEM consumer.

Choosing MQT QECC for the wrong workload

Problem: a graphlike Stim DEM baseline is routed into MQT QECC when

PyMatching or fusion-blossom would be the cleaner route.

Fix: decide first whether the science needs toolkit-native code models or only a

matching decoder over detector events.

Overclaiming color-code generality

Problem: the LightsOut lane gets presented as a decoder for arbitrary CSS or

QLDPC workloads.

Fix: keep the color-code specialization explicit and record when a more general

decoder is needed.

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.