qec-memory-experiment

qec-memory-experiment is a skill for Codex from xi-zhao/OpenQuantum. It costs 114 tokens per session (1,008 once invoked), scanned A, original, MIT.

A local simulation workflow for testing error correction in a small surface-code quantum memory. It adds a defined error rate, samples measurement results, and uses a matching decoder to estimate logical errors.

In plain words
What is it for?
Use it to compare selected code distances, error rates, rounds, and shot counts, and to report logical error rates with uncertainty intervals.
Why use it?
It provides repeatable teaching and regression results without treating a simplified simulator model as evidence about a real quantum computer or a fault-tolerance threshold.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to compare selected code distances, error rates, rounds, and shot counts, and to report logical error rates with uncertainty intervals.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xi-zhao/openquantum/qec-memory-experiment
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xi-zhao/OpenQuantum --skill qec-memory-experiment
Clone the repo
git clone --depth 1 https://github.com/xi-zhao/OpenQuantum

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qec-memory-experiment

README.md
[![agentmods](https://agentmods.dev/badge/skills/xi-zhao/openquantum/qec-memory-experiment/github.svg)](https://agentmods.dev/skills/xi-zhao/openquantum/qec-memory-experiment)
Your own site
<a href="https://agentmods.dev/skills/xi-zhao/openquantum/qec-memory-experiment"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/qec-memory-experiment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qec-memory-experiment

Your own site · 80×15
<a href="https://agentmods.dev/skills/xi-zhao/openquantum/qec-memory-experiment"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/qec-memory-experiment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,008 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00114 $0.01008
Opus 5.5 $0.00046 $0.00403
Sonnet 5.5 $0.00023 $0.00202
Haiku 4.5 $0.00011 $0.00101

Measured 9d ago against content hash de97146ee918, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

qec-memory-experiment scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (mcp/bridge.py, mcp/server.mjs, test/mcp.test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/qec-memory-experiment/SKILL.md · 63 lines

What it actually says

QEC Memory Experiment

原生 SDK 路径

本能力同时支持 Stim / PyMatching 的原生公开 API。用户需要 自定义 Stim 电路、detector error model、Matching 图与批量译码 时,由 Agent 在固定依赖环境中编写和运行任务代码,不限于下文便捷 Tool 的预设模型。

使用 node scripts/sdk-access.mjs inspect qec-memory-experiment 定位环境,按完整 SDK 工作流执行。模块导航:stim、pymatching;导航不是 API 白名单。

下文关于模型、门集、输入与预算的限制描述便捷 Tool 的合同;原生 SDK 另受上游版本、可选依赖、宿主资源与用户授权约束。已禁用或被拒绝的动作不能借代码路径绕过。执行状态和科研验收分别报告。

核心对象

核心对象是一份可重放的 surface-code memory 实验配置:basis、code distance、rounds、shots、统一物理错误率和 seed。Stim 生成并采样电路,PyMatching 从 detector error model 构建 MWPM 解码器。

固定边界:

  • basis: x 或 z;
  • distance: 不小于 3 的奇数;
  • rounds: 正整数;
  • shots: 正整数;
  • physicalErrorRate: 0–1;
  • seed: 0–2^32-1。

统一错误率同时用于 Clifford 后退极化、每轮数据退极化、测量翻转和 reset 翻转。这是版本化实验 profile,不代表某台真实 QPU 的校准模型。

工作流

  1. 选择 basis、distance、rounds、shots、physicalErrorRate 和显式 seed。
  2. 调用 run_qec_memory_experiment。主动作加载固定环境并返回 packages;依赖须显式准备;缺失或旧锁环境返回准备命令,不在 Tool 中安装。
  3. 报告实际包版本、电路/DEM 摘要与 SHA-256、逻辑错误数、逻辑错误率、标准误和 Wilson 95% 区间。
  4. 检查 observations:实验摘要、seed、计数恒等式、错误率重算、区间边界、零噪声不变量、来源链。
  5. 比较多组实验时,每组都保留固定 shots 与 seed 策略;不要选择性丢弃失败点。环境不可用时报告工具错误,不编造结果。

解释规则

  • 零逻辑错误不等于真实错误率为零,必须同时报告 shots 和 Wilson 区间。
  • 单个 distance、单个物理错误率的结果不能证明 threshold。
  • 不同 distance 的比较必须使用同一噪声 profile 和可比 shots。
  • physicalErrorRate 是模拟器参数,不是硬件校准事实。
  • 工具完成只产生 observations_available;Result Package 和 Session Event Log 未物化时,不宣称最终科学验收通过。

输出格式

  1. 固定实验配置和包版本;
  2. code task、电路/DEM 规模与摘要;
  3. 逻辑错误数/率、标准误、Wilson 95% 区间;
  4. validation observations;
  5. 明确写出不能支持的 threshold 与硬件结论。

码距、存储轮数和采样数由调用方选择,适配器不额外设置人工规模上限。具体资源配置见本地计算说明。

依赖准备

运行前执行 node scripts/setup-paper-tools.mjs qec-memory-experiment。缺失、旧锁和已安装环境的处理见共同准备说明;Tool 不自动安装或升级依赖。

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · +11 lines de97146ee918
  2. 27d ago Changed · +4 lines eb5ae10fe5d7
  3. 1mo ago Changed · +2 lines · -5 tokens per session 37d7d53c76e7
  4. 1mo ago Changed · -1 lines c87d234d0077
  5. 1mo ago First seen · 47 lines · 119 tokens per session scan A 0c74fe1002a1

Subscribe to this mod's changes

qec-memory-experiment is a skill published in the GitHub repository xi-zhao/OpenQuantum (75 stars, last pushed yesterday), licensed MIT. It adds 114 tokens to every session and 1,008 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

discriminating-experiment-design

Recognize when a benchmark cannot discriminate between methods, construct experiment families that could, sweep structural knobs without sweeping the decision itself, and report a tie that survives as the headline result. Use when all methods score the same on your benchmark, when designing a new evaluation world or…

AURORA-NEURO/aurora-agent · 89 tokens

i4h-catheter-navigation-e2e

End-to-end smoke for catheter navigation covering setup, digital twin, DRR, and unit tests. Use when asked to run the full catheter workflow smoke or demo the v0.7 pipeline.

NVIDIA/skills · 49 tokens

nw-tlaplus-verification

TLA+ formal verification for design correctness and PBT pipeline integration.

nWave-ai/nWave · 20 tokens

blazemeter-api-reference

Comprehensive reference for BlazeMeter REST APIs, including authentication, identifiers, and API endpoints. Use when working with BlazeMeter APIs for (1) Understanding BlazeMeter REST API structure, (2) Authenticating API requests, (3) Obtaining identifiers (Workspace ID, Project ID, Test ID, etc.), (4) Using Test…

Blazemeter/bzm-mcp · 109 tokens

blazemeter-getting-started

Getting started guides for BlazeMeter, including onboarding, migration guides, continuous testing journey, glossary, and mobile testing. Use when getting started with BlazeMeter for (1) Navigating BlazeMeter University onboarding, (2) Migrating from Runscope or JMeter, (3) Understanding the continuous testing journey…

Blazemeter/bzm-mcp · 96 tokens

blazemeter-api-monitoring

Comprehensive guide for BlazeMeter API Monitoring, including test creation, configuration, scripting, integrations, notifications, and management. Use when working with API Monitoring tests for (1) Creating and configuring API tests, (2) Writing custom scripts (Initial, Pre-request, Post-response), (3) Integrating…

Blazemeter/bzm-mcp · 142 tokens