OpenQuantum: Skill for Codex

.agents/skills/quantum-information-audit/SKILL.md

quantum-information-audit is a skill for Codex from xi-zhao/OpenQuantum. It costs 101 tokens per session (749 once invoked), scanned A, original, MIT.

A local audit tool for density matrices, which are tables describing quantum states that may include uncertainty or mixtures. It checks mathematical properties such as trace, Hermiticity, positive semidefiniteness, purity, partial-transpose eigenvalues, and negativity.

In plain words
What is it for?
Use it to audit matrices of bounded size, calculate purity and partial-transpose results for a chosen subsystem split, and review traceable audit evidence.
Why use it?
It independently checks whether a supplied small density matrix is mathematically consistent and records which checks passed or were not performed.

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/quantum-information-audit/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 quantum-information-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/xi-zhao/openquantum/quantum-information-audit.svg)](https://agentmods.dev/skills/xi-zhao/openquantum/quantum-information-audit)
Your own site
<a href="https://agentmods.dev/skills/xi-zhao/openquantum/quantum-information-audit"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/quantum-information-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 749 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.00101 $0.00749
Opus 5 $0.00051 $0.00375
Sonnet 5 $0.00020 $0.00150
Haiku 4.5 $0.00010 $0.00075

Measured 3d ago against content hash f1c3a580d446, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

quantum-information-audit 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 3d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (evals/run-evals.mjs, mcp/bridge.py, mcp/server.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/quantum-information-audit/SKILL.md · 43 lines

What it actually says

量子信息审计

核心边界

本能力只审计用户已经给出的密度矩阵。核心对象是版本化的审计请求:复矩阵的实部/虚部、子系统维数,以及需要做部分转置的子系统索引。

  • toqito MCP-exposed Tool 产生数值事实。
  • OpenQuantum Validator 用独立 JavaScript 实现重算迹、Hermiticity、正半定性、纯度、部分转置谱和 negativity。
  • MCP-exposed Tool 的结果标记 observations_available,不等于最终科学验收。只有物化 Result Package 并核对 Session Event Log 来源链后,才可能形成最终 Acceptance。

工作流

  1. 确认矩阵总维数等于 subsystemDimensions 的乘积,且不超过 16。
  2. 明确 transposeSubsystems 采用从 0 开始的子系统索引,并且是非空真子集。
  3. 调用 audit_density_matrix。复矩阵用 matrixReal 和可选的 matrixImag 表示;未给虚部时按全零处理。主动作加载固定环境并返回 packageVersion,首次调用可能下载依赖并写入工作区环境,无需单独检查运行时。
  4. 分栏报告实际包版本及:
    • toqito 事实;
    • 独立 Validator observations;
    • 失败、不检查项和适用范围。
  5. 确认 tool/result 是否包含 acceptance_available 与 Result Commit;只有可信 Host Plugin 通过 内部 Scientific Result Adapter 进入 Materializer,并完成物化、重读和校验时,才能按 central Acceptance Builder 推导的状态报告最终验收。
  6. 不把 negativity 写成普适的纠缠分类结论;它只对应本次指定的二分和部分转置判据。

必须保持的规则

  • 不提交云任务或真实量子硬件任务。
  • 不接受调用方自定义容差;容差由版本化 Acceptance Profile 固定。
  • provenance.complete=not_checked 时不得宣称科学验收通过。
  • 不凭 MCP-exposed Tool 的文本内容自行推断 passed;最终状态必须来自 Harness 物化后的 Acceptance Report。
  • 工具失败、科学 observation 失败、来源链未检查是三种不同状态。
  • 不从分子结构、实验层析数据或任意量子信道自动推导密度矩阵。

示例

Bell 态 |Phi+><Phi+| 使用 subsystemDimensions=[2,2]transposeSubsystems=[0]。预期纯度为 1、部分转置最小本征值为 -0.5、negativity 为 0.5;仍需以实际工具事实和 Validator observations 为准。

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. 3d ago Changed · -1 lines f1c3a580d446
  2. 8d ago First seen · 44 lines · 101 tokens per session scan A 056f71a0dbc7

Subscribe to this mod's changes

quantum-information-audit is a skill published in the GitHub repository xi-zhao/OpenQuantum (48 stars, last pushed yesterday), licensed MIT. It adds 101 tokens to every session and 749 once invoked, about $0.0005 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

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

academic-trend-research

Research emerging academic trends by combining scholarly databases, web sources, and news to identify rising research areas, breakthrough papers, and shifting scientific consensus. Ideal for R&D teams tracking frontier science.

sandbaseai/sandbase-skills · 43 tokens

alexandria

Reach for this when a research question needs cited sources across academic papers, public domain books, legal records, government archives, security advisories, news, or developer documentation. Alexandria is an MCP server backed by 152 public digital libraries; use it whenever an answer should point at real…

The-40-Thieves/alexandria-mcp · 71 tokens

memory-search-mcp

Long-term memory and context retrieval for AI agents. Semantic search across conversation history with care-weighted relevance.

CSOAI-ORG/memory-search-mcp · 0 tokens

ml-experiment-review

Use this skill when reviewing an ML experiment, benchmark, ablation, or training run.

NeoXider/neoxider-mcp-hub · 0 tokens

noodle-biomedical-literature-discovery

Find, inspect, compare, and traverse public biomedical research literature. Use for PubMed or scholarly paper search, publication details, PMID/DOI/PMCID lookup, related papers, citation paths, semantic literature neighborhoods, corpus coverage, or questions asking what research exists about a gene, variant…

helena-bioinformatics/noodle-mcp · 105 tokens