OpenQuantum: Skill for Codex

.agents/skills/qpanda-qubo/SKILL.md

qpanda-qubo is a skill for Codex from xi-zhao/OpenQuantum. It costs 128 tokens per session (1,729 once invoked), scanned A, original, MIT.

A workflow for turning small binary optimisation problems into QUBO models. QUBO represents choices as zero-or-one variables and uses a formula to score each combination.

In plain words
What is it for?
Use it for small scheduling, selection, allocation, or financial models with up to five binary variables and up to four equality constraints.
Why use it?
It helps model equality constraints and compare a local QAOA approximation with a deterministic brute-force answer.

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/qpanda-qubo/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 qpanda-qubo

README.md
[![agentmods](https://agentmods.dev/badge/skills/xi-zhao/openquantum/qpanda-qubo/github.svg)](https://agentmods.dev/skills/xi-zhao/openquantum/qpanda-qubo)
Your own site
<a href="https://agentmods.dev/skills/xi-zhao/openquantum/qpanda-qubo"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/qpanda-qubo/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 qpanda-qubo

Your own site · 80×15
<a href="https://agentmods.dev/skills/xi-zhao/openquantum/qpanda-qubo"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/qpanda-qubo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,729 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.00128 $0.01729
Opus 5.5 $0.00051 $0.00692
Sonnet 5.5 $0.00026 $0.00346
Haiku 4.5 $0.00013 $0.00173

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

Security

Grade A, and why

qpanda-qubo 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 15d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (mcp/bridge.py, mcp/server.mjs, modeling/binary-linear-model.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/qpanda-qubo/SKILL.md · 85 lines

How it starts

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

QPanda QUBO Workbench

原生 SDK 路径

本能力同时支持 QPanda Algorithm 的原生公开 API。用户需要 QUBO 建模、约束、算法与上游优化模块 时,由 Agent 在固定依赖环境中编写和运行任务代码,不限于下文便捷 Tool 的预设模型。

使用 node scripts/sdk-access.mjs inspect qpanda-qubo 定位环境,按完整 SDK 工作流执行。模块导航:pyqpanda_alg;导航不是 API 白名单。

macOS 的完整 SDK setup 需要 Git、CMake 和 C++ 编译器,以固定 fmt 11.2.0 源码构建隔离动态库;其余上游 wheel 的系统依赖仍按平台核验,不修改 Homebrew 或裁剪算法模块。

原生程序导入库前,按环境定位器的 bootstrap 执行启动兼容处理:macOS 从独立目录加载固定 fmt 11 ABI,保留 pyqpanda_alg 顶层完整导入。这不限制公开 API,也不替换数值算法。

下文关于模型、门集、输入与预算的限制描述便捷 Tool 的合同;原生 SDK 另受上游版本、可选依赖、宿主资源与用户授权约束。已禁用或被拒绝的动作不能借代码路径绕过。执行状态和科研验收分别报告。

工作边界

这个 Skill 负责组织 QUBO 求解工作流,真正的计算由 qpanda_qubo MCP Server 暴露并经 Harness MCP Client 注册的 Tool 完成, 底层调用本源官方 pyqpanda_alg 的 QUBO 模块(QuadraticBinary / QUBO_QAOA)。当前只开放 本地、无凭据的求解;调用前须显式准备固定 Python 环境(pyqpanda3 是原生 wheel):

  • 二值变量数由模型决定;
  • 可以用变量名、minimize/maximize 目标和线性等式约束建模;每个约束必须显式给出 penalty;
  • QUBO 以数值系数给出:quadratic(方阵)、可选 linear、可选 constant;
  • method=traversal 始终返回经典暴力遍历的确定性最优解;
  • method=qaoa 运行本地 QAOA(layer 由用户选择),返回比特串概率分布。

当前不开放不等式自动松弛、penalty 自动选择、本源量子云、Token、真机任务提交、任意 Python、 sympy 表达式字符串、文件路径或数据集加载。

工作流

  1. 按用户输入选择下述主动作;主动作会加载固定环境并随结果返回 packageVersion,不需要额外的运行时检查调用。
  2. 若 Tool 不存在,告诉用户在“设置中心 → 量子组件 → MCP Server 连接”把 QPanda QUBO 配置为启用,重启 OpenQuantum 后再试;不要改用 Bash 绕过设置。
  3. 用户给的是业务目标和等式约束时,优先调用 model_and_solve_qpanda_qubo。检查 constraints.feasible 和 penalty.sufficient;未检查时不得宣称可行性或 penalty 已验证;后者失败表示 penalty 太弱,不能把 QUBO 最优解写成 原约束问题的最优解。
  4. 用户已经给出 QUBO 数值时,调用 solve_qpanda_qubo:目标是 x^T Q x + b·x + c, quadratic 是 Q,linear 是 b,constant 是 c。
  5. 按任务选择 traversal 或 qaoa;QAOA 不要求先遍历。两项 Tool 都接受 referenceMode;auto 仅在变量数不超过 12 时穷举,required 尝试所请求规模,skip 不做额外穷举。
  6. 比较 QAOA 概率分布的最高比特串与经典最优解时,注意比特序可能不同,按目标函数值判断而不是 直接按比特位比较。
  7. 输出时区分:用户模型、编译后的 QUBO、上游工具事实、枚举 observations、尚未完成的来源链验收。

与其他能力的分工

  • 电路层面的构建、转译与文档查询用 qiskit-circuit-workbench 或 tyxonq-workbench。
  • 严格限定的二量子位基态 VQE 与独立验收用 quantum-ground-state。
  • 真机执行(悟空 QPU)使用默认关闭的 qpanda_runtime MCP Server 所暴露的 Tool;本地 QUBO 求解不提交任何云任务。

Read the full file on GitHub · 85 lines

Files

What ships with it

9 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. 15d ago Changed · +15 lines a38009500dbe
  2. 1mo ago Changed · +4 lines 2058f9a3b9e8
  3. 1mo ago Changed · +2 lines · -4 tokens per session 9565a823f9d9
  4. 1mo ago Changed f753f22cd50d
  5. 1mo ago First seen · 64 lines · 132 tokens per session scan A 1321094a52dd

Subscribe to this mod's changes

qpanda-qubo is a skill published in the GitHub repository xi-zhao/OpenQuantum (71 stars, last pushed today), licensed MIT. It adds 128 tokens to every session and 1,729 once invoked, about $0.0005 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-08-30.

Related

Other skills, from other repositories

cancel-or-change-award

Works out the cancel or change fee, where the points go back, and if a rebook is cheaper than keeping the ticket. Use when the user wants to cancel, change or rebook an award ticket. Requires the Award Travel Finder MCP connector (https://mcp.awardtravelfinder.com/mcp).

AwardTravelFinder/mcp · 69 tokens

maximize-transfer-bonus

Decides if a live transfer bonus is worth using now, what to book with it and how many points to move. Use when the user asks about a transfer bonus, or a bonus to one of their programmes is live. Requires the Award Travel Finder MCP connector (https://mcp.awardtravelfinder.com/mcp).

AwardTravelFinder/mcp · 71 tokens

x402-discovery

Agents discover paid artefact rails via GET https://councilof.ai/.well-known/x402.json (mode is reported from runtime env, Base eip155:8453, USDC; amounts from challenge only — no invent price). Catalog GET /api/x402. Free door GET /api/free-door amount 0 settles and charges nothing — proves the rail. Living board GET…

CSOAI-ORG/councilof-ai · 367 tokens

sherweb

Every Sherweb Partner API capability, plus a local SQLite store, offline analytics, and margin/drift/orphan joins no other Sherweb tool has. Trigger phrases: reconcile sherweb billing, what's my margin per customer in sherweb, find orphaned sherweb subscriptions, list sherweb customers, preview a sherweb seat change…

Servosity/msp-skills · 88 tokens

business-model

Create or review business model deliverables with traceable assumptions, decision criteria, ownership, and risk controls. Use when the user asks for business model planning or analysis.

sandbaseai/sandbase-skills · 36 tokens

emil-design-eng

This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.

stvlynn/dsh.fish · 35 tokens