ppvm-simulation

ppvm-simulation is a skill for Claude Code, Codex from xi-zhao/OpenQuantum. It costs 54 tokens per session (1,010 once invoked), scanned A, original, MIT.

A coding interface for PPVM, a software library for simulating certain quantum circuits and operators, including Pauli propagation, generalized stabilizer tables, and loss or leakage effects.

In plain words
What is it for?
It is for writing and running PPVM tasks involving near-Clifford observables, non-Clifford tableaux, or neutral-atom loss and leakage models.
Why use it?
It provides a way to run these specialised calculations while making important limits and differences between mathematical simulation and physical-device modelling explicit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit It is for writing and running PPVM tasks involving near-Clifford observables, non-Clifford tableaux, or neutral-atom loss and leakage models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xi-zhao/openquantum/ppvm-simulation
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 ppvm-simulation
Clone the repo
git clone --depth 1 https://github.com/xi-zhao/OpenQuantum

Made for: Claude Code, 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 ppvm-simulation

README.md
[![agentmods](https://agentmods.dev/badge/skills/xi-zhao/openquantum/ppvm-simulation/github.svg)](https://agentmods.dev/skills/xi-zhao/openquantum/ppvm-simulation)
Your own site
<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.

agentmods 80×15 button for ppvm-simulation

Your own site · 80×15
<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>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,010 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.00054 $0.01010
Opus 5.5 $0.00022 $0.00404
Sonnet 5.5 $0.00011 $0.00202
Haiku 4.5 $0.00005 $0.00101

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

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (references/native-example.py), 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/ppvm-simulation/SKILL.md · 43 lines

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。

Files

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.

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. 23d ago First seen · 43 lines · 54 tokens per session scan A 5e792c0170e3

Subscribe to this mod's changes

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.

Related

ppvm-simulation compared with skills from other repositories

ppvm-simulation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ppvm-simulationxi-zhao/OpenQuantumSkill755d agoMITA54Claude Code, Codex
manim-animatorsandbaseai/sandbase-skillsSkill21212d agoApache-2.0A59Claude Code
academic-researchsandbaseai/sandbase-skillsSkill21212d agoApache-2.0A39Claude Code
academic-trend-researchsandbaseai/sandbase-skillsSkill21212d agoApache-2.0A43Claude Code
openalex-guidecyanheads/openalex-mcp-serverSkill1816d agoApache-2.0A96Claude Code
arxiv-guidecyanheads/arxiv-mcp-serverSkill7yesterdayApache-2.0A81Claude Code
alexandriaThe-40-Thieves/alexandria-mcpSkill317d agoMITA71Claude Code