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.
npx skills add xi-zhao/OpenQuantum --skill ppvm-simulationgit clone --depth 1 https://github.com/xi-zhao/OpenQuantumWrote 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.
[](https://agentmods.dev/skills/xi-zhao/openquantum/ppvm-simulation)<a href="https://agentmods.dev/skills/xi-zhao/openquantum/ppvm-simulation"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/ppvm-simulation/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.
<a href="https://agentmods.dev/skills/xi-zhao/openquantum/ppvm-simulation"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/ppvm-simulation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.01010 |
| Opus 5.5 | $0.00022 | $0.00404 |
| Sonnet 5.5 | $0.00011 | $0.00202 |
| Haiku 4.5 | $0.00005 | $0.00101 |
Grade A, and why
ppvm-simulation 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 23d ago.
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.
What it actually says
PPVM
原生 SDK 路径
本能力使用 PPVM 的原生公开 API。用户需要 Pauli 传播、广义 tableau、近 Clifford 观测量与含丢失/泄漏的自定义电路采样 时,由 Agent 在固定依赖环境中编写和运行任务代码。
使用 node scripts/sdk-access.mjs inspect ppvm-simulation 定位环境,按完整 SDK 工作流执行。模块导航:ppvm;导航不是 API 白名单。
显式准备固定源码的 Python 3.12 / Rust 环境;完整原生 API 可用,成本取决于非 Clifford 分支与截断。
Heisenberg 计算倒序处理整条门和噪声链;LOST 与比特值分开;reset_state 不恢复丢失/泄漏。
非对称丢失的存活分支反作用尚未实现;开发数值对照不构成器件模型或科学验收。
本入口复用宿主文件与代码工具,没有新增通用执行 Tool。原生 SDK 受上游版本、可选依赖、宿主资源与用户授权约束。已禁用或被拒绝的动作不能借代码路径绕过。执行状态和科研验收分别报告。
当任务需要近 Clifford 观测量、非 Clifford tableau 或中性原子丢失/泄漏模型时使用。先比较现有 Stim、Tsim、Clifft 与 monoprop:仅需普通 Clifford 采样或通用算符传播时,不必引入 PPVM。
方法选择与边界
PauliSum/LossyPauliSum:从观测量出发反向传播,整条门和噪声操作链倒序,旋转角保留原符号。PauliSum 没有t()简写,T 门的观测量传播使用rz(q, math.pi/4)(忽略无关全局相位)。记录截断规则,不能以一次有限截断计算宣称收敛。GeneralizedTableau:按物理时间顺序作用门,再测量。Python 绑定支持 1–2048 qubit;此上限不表示这些规模在任意非 Clifford 电路上都可承受,系数可能迅速增长。StimProgram/sample_stim:使用固定版本支持的 Stim 指令及扩展,不假定与 Stim 全指令等价。保存原始测量记录;LOST=2不是布尔比特,不能直接转成 detector flips。reset_state只重置活跃 qubit,保留丢失/泄漏标记;reset才恢复计算子空间。丢失与泄漏的模型语义分别报告。- 相关丢失参数
p[1]是失去某个指定 qubit 的概率,恰好失去一个的总概率为2*p[1]。非对称丢失目前不包含存活分支反作用;不能宣称完整物理量子通道或器件数字孪生已验证。 - 保存种子与线程设置;用
fork(seed=...)构造独立随机轨迹,复制对象可能复制随机数状态。
执行与证据
先发现环境,再显式准备,随后用宿主代码工具运行用户的完整程序。准备会下载和编译 Rust/Python 依赖;首次执行不隐式安装。硬件或外部服务仍需另行授权。
可编辑原生示例展示带噪观测量与丢失恢复,参数只是示例,不是公开 API 白名单。程序、输入、锁文件摘要、实际版本、近似与原始输出一起保留;用独立解析值、密度矩阵或其他适用方法检查任务的科学结论。
使用、来源与实测范围。原生程序执行与开发回归不推导最终科学验收,scientificValidation=not_evaluated。
What ships with it
3 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.
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.
- 23d ago First seen · 43 lines · 54 tokens per session scan A 5e792c0170e3
ppvm-simulation is a skill published in the GitHub repository xi-zhao/OpenQuantum (75 stars, last pushed 5d ago), licensed MIT. It adds 54 tokens to every session and 1,010 once invoked, about $0.0002 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-11-11.
ppvm-simulation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ppvm-simulationxi-zhao/OpenQuantum | Skill | 75 | 5d ago | MIT | A | 54 | Claude Code, Codex |
| manim-animatorsandbaseai/sandbase-skills | Skill | 212 | 12d ago | Apache-2.0 | A | 59 | Claude Code |
| academic-researchsandbaseai/sandbase-skills | Skill | 212 | 12d ago | Apache-2.0 | A | 39 | Claude Code |
| academic-trend-researchsandbaseai/sandbase-skills | Skill | 212 | 12d ago | Apache-2.0 | A | 43 | Claude Code |
| openalex-guidecyanheads/openalex-mcp-server | Skill | 18 | 16d ago | Apache-2.0 | A | 96 | Claude Code |
| arxiv-guidecyanheads/arxiv-mcp-server | Skill | 7 | yesterday | Apache-2.0 | A | 81 | Claude Code |
| alexandriaThe-40-Thieves/alexandria-mcp | Skill | 3 | 17d ago | MIT | A | 71 | Claude Code |