OpenQuantum: Skill for Codex

.agents/skills/quantum-ground-state/SKILL.md

quantum-ground-state is a skill for Codex from xi-zhao/OpenQuantum. It costs 103 tokens per session (943 once invoked), scanned A, original, MIT.

A narrowly defined quantum solver for the ground-state energy of a two-quantum-bit Pauli Hamiltonian in a specified one-excitation sector. It uses a noiseless statevector VQE and checks the result against an exact calculation; VQE is a method that searches for a low-energy quantum state.

In plain words
What is it for?
Use it to solve and validate supported two-quantum-bit Hamiltonians, compare VQE convergence with the exact reference, and create result or reproduction reports.
Why use it?
It limits the calculation to a problem that can be independently checked, separating the computed result from scientific acceptance.

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-ground-state/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-ground-state

README.md
[![agentmods](https://agentmods.dev/badge/skills/xi-zhao/openquantum/quantum-ground-state.svg)](https://agentmods.dev/skills/xi-zhao/openquantum/quantum-ground-state)
Your own site
<a href="https://agentmods.dev/skills/xi-zhao/openquantum/quantum-ground-state"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/quantum-ground-state.svg" alt="Measured on agentmods" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 943 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.00103 $0.00943
Opus 5 $0.00051 $0.00472
Sonnet 5 $0.00021 $0.00189
Haiku 4.5 $0.00010 $0.00094

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

Security

Grade A, and why

quantum-ground-state 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 2d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (core/contracts.mjs, evals/run-evals.mjs, scripts/lib/canonicalize.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-ground-state/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Quantum Ground State

能力边界

这个 Skill 只支持一个窄而可验证的科学主张:对用户提供的二量子位实 Pauli 和,在固定 hamming-weight=1 扇区内计算基态能量。执行方法固定为无噪 statevector VQE,并用独立的 实对称 2×2 闭式对角化提供参考。

把输入 Hamiltonian 当作用户提供的问题定义,不从名称或标签推断分子来源。 完整边界见 references/SCOPE.md,数值约定见 references/NUMERICAL-CONVENTIONS.md

执行工作流

  1. inputs/request.schema.json 检查结构,并由 solver 再做语义 preflight。
  2. 明确拒绝 QAOA、Pauli Y、复系数、错误单位、其他粒子扇区、更多量子位、shots 和噪声。
  3. 普通用户请求调用原生 Tool solve_and_validate_ground_state;它在一次确定性调用内生成六类事实并运行独立 Validator。
  4. facts-only 求解和已物化 Result Package 重验是内部 solver/Validator 接口,不增加到模型可见 Tool surface。
  5. 组合 Tool 自己的 provenance.complete 必须保持 not_checked;不得伪造 Session、路径或摘要让它通过。
  6. OpenQuantum 的可信 Host Plugin 从真实 Session/Tool 身份进入内部 Scientific Result Adapter; Materializer 使用 ctx.fs 物化、重读和校验 Result Package,Validator 只对重读后的结构化 证据产生 observations,central Acceptance Builder 再汇聚 Acceptance Profile、observations 和 provenance 推导科学结论。
  7. 需要评分或复现时,分别生成 Score Report 或 Reproduction Report;不得从运行完成推导它们。

本地事实求解命令:

node scripts/solve.mjs <request.json> <new-output-directory>

目标目录中任何同名 Artifact 已存在时必须拒绝覆盖。

产物合同

  • problem-spec
  • hamiltonian-manifest
  • exact-reference
  • ground-state-result
  • convergence-trace
  • resource-estimate

六类 Artifact 都是 additionalProperties: false 的 JSON 事实对象。不要在其中增加:

  • statusscoreacceptance 或“已复现”结论;
  • Model 的主观置信度;
  • 没有来源链的分子/化学主张;
  • API key、凭证、绝对路径或 Harness 身份。

科学验收规则

权威规则位于 acceptance-profiles/supplied-pauli-statevector-v1.json1.6 mHa 只适用于这个 Profile,不是所有体系的普适标准。必须同时检查作用域、canonical digest、 Hermiticity、扇区不变性、精确参考重算、归一化、期望值回放、变分下界、收敛和 provenance。

若 optimizer 未收敛,solver 仍可产生有限事实,但 Validator 必须使必需的 vqe.converged 检查失败; 不得把它包装成科学成功。

解释要求

对用户解释时明确区分:这是“给定 Hamiltonian 的扇区基态”,不是完整的分子 Hamiltonian/FCI 工作流。 Model 可以解释 Result/Report,但不能修改中央 Acceptance Builder 基于 Validator observations、Profile 和 来源链推导的结论。

Read the full file on GitHub · 70 lines

Files

What ships with it

42 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. 2d ago Changed d611358c2fad
  2. 8d ago First seen · 70 lines · 103 tokens per session scan A 2ee1416308cb

Subscribe to this mod's changes

quantum-ground-state is a skill published in the GitHub repository xi-zhao/OpenQuantum (48 stars, last pushed today), licensed MIT. It adds 103 tokens to every session and 943 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