OpenQuantum: Skill for Codex

.agents/skills/qec-memory-experiment/SKILL.md

qec-memory-experiment is a skill for Codex from xi-zhao/OpenQuantum. It costs 119 tokens per session (689 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).

This is xi-zhao/OpenQuantum's own configuration. It tells Codex how to work on OpenQuantum itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything OpenQuantum configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xi-zhao/OpenQuantum. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/xi-zhao/OpenQuantum/main/.agents/skills/qec-memory-experiment/SKILL.md
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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 689 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.
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.00119 $0.00689
Opus 5 $0.00060 $0.00345
Sonnet 5 $0.00024 $0.00138
Haiku 4.5 $0.00012 $0.00069

Measured yesterday against content hash c87d234d0077, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 yesterday.

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 · 46 lines

What it actually says

QEC Memory Experiment

核心对象

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

固定边界:

  • basis: xz
  • distance: 奇数 3、5、7;
  • rounds: 1–20;
  • shots: 100–50,000;
  • physicalErrorRate: 0–0.05;
  • seed: 0–2^32-1。

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

工作流

  1. 选择 basis、distance、rounds、shots、physicalErrorRate 和显式 seed。
  2. 调用 run_qec_memory_experiment。主动作加载固定环境并返回 packages;首次调用可能下载依赖并写入工作区环境,无需单独检查运行时。
  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 与硬件结论。
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. yesterday Changed · -1 lines c87d234d0077
  2. 7d 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 (48 stars, last pushed yesterday), licensed MIT. It adds 119 tokens to every session and 689 once invoked, about $0.0006 per session on Opus 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

i4h-catheter-navigation-render-drr

Render a single DRR fluoroscopy frame from a CT cache or synthetic phantom. Use when asked to render DRR, generate a fluoro image, or smoke-test the Slang renderer.

NVIDIA/skills · 48 tokens

academic-research

Search academic papers, scholarly articles, and research publications through SandBase. Use when asked for literature review, academic citations, scholarly research, paper discovery, or scientific evidence gathering.

sandbaseai/sandbase-skills · 39 tokens

test-first

A test-first development guide, where tests are written before the code they check. TDD, or test-driven development, means first writing a test that fails, then writing the simplest code that makes it pass.

pingfanfan/hello-dsh · 48 tokens

blazemeter-performance-testing

Comprehensive guide for BlazeMeter Performance Testing, including load configuration, reporting, JMeter configuration, Taurus, scenarios, and advanced features. Use when working with Performance tests for (1) Configuring load settings and distribution, (2) Creating and running tests (JMeter, Browser, URL/API…

Blazemeter/bzm-mcp · 138 tokens