qua-programs

qua-programs is a skill for Claude Code, Codex from xi-zhao/OpenQuantum. It costs 47 tokens per session (899 once invoked), scanned A, original, MIT.

A local generator for Quantum Machines QUA pulse programs for one OPX1 analogue output. It produces source code, configuration, and encoded program data for constant-voltage pulses, but does not run them or simulate hardware.

In plain words
What is it for?
Use it to prepare timed pulses with amplitudes, waits, and repetitions, then pass the generated artifacts to a separately configured QOP system.
Why use it?
It turns a checked pulse sequence into the file formats expected by the QUA software development kit while keeping hardware connections and credentials out of the process.

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 Use it to prepare timed pulses with amplitudes, waits, and repetitions, then pass the generated artifacts to a separately configured QOP system.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xi-zhao/openquantum/qua-programs
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 qua-programs
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 qua-programs

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xi-zhao/openquantum/qua-programs"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/qua-programs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 899 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.00047 $0.00899
Opus 5.5 $0.00019 $0.00360
Sonnet 5.5 $0.00009 $0.00180
Haiku 4.5 $0.00005 $0.00090

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

Security

Grade A, and why

qua-programs 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 4 executable files (mcp/bridge.py, mcp/contracts.mjs, 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/qua-programs/SKILL.md · 37 lines

What it actually says

QUA 脉冲程序准备

原生 SDK 路径

本能力同时支持 QUA 的原生公开 API。用户需要 任意 program、控制流、stream processing、配置与量子机器接口 时,由 Agent 在固定依赖环境中编写和运行任务代码,不限于下文便捷 Tool 的预设模型。

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

本地程序构建与外部调用分开;账户、凭据、费用、设备操作和数据外发沿用宿主及用户授权。原生 SDK 访问不自动启用服务。

qm 导入会读取用户配置并初始化日志;离线程序构建先使用本 Skill bridge.py 的 offline_user_config 上下文,真实设备任务则使用用户授权的实际配置。不要在离线步骤构造 QuantumMachinesManager。

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

调用 qua_local 的 prepare_qua_pulse_program,为 Quantum Machines OPX1 单模拟输出构建确定性的常数脉冲序列。 显式准备环境:node scripts/setup-paper-tools.mjs qua-programs。固定 qm-qua==1.4.1,SDK 为 BSD-3-Clause。

  • pulses 按输入顺序执行;amplitudeVolts 是电压,范围 [-0.5, 0.5) V。
  • durationNs 至少 16 ns,且为 4 ns 的整数倍;waitAfterNs 为 0 时不生成等待指令,非零时至少 16 ns 且为 4 ns 整数倍,遵循 QUA 最小 4 时钟周期要求。repetitions 是有限循环次数,受 QUA int 表示限制。
  • 使用固定 OPX1 单输入元素、con1 模拟输出 1、零中频;没有任意配置、Python、设备地址、数字 I/O 或触发等待入口。
  • 返回 SDK 生成的 quaSource、configurationJson 和 programBase64。这些是可交给用户的程序工件,工具自身不执行返回的源码。
  • 通过官方静态 set_capabilities_offline([]) 选择基线能力,不构造 QuantumMachinesManager,不连接 QOP。
  • nominalDurationNs 只累加脉冲和 wait,不含编译器调度及循环开销。序列化验证不等于硬件时序验证。
  • QOP 编译和输出模拟需要相应控制系统或 QM 服务,未包含在本 Tool 中;不要把程序生成叫作本地 OPX 仿真。用户自行配置以后实际运行所需的地址、权限与凭据。
  • 本地工具隔离 QM 用户配置,避免继承既有的日志上传和控制器连接设置。execution 提供 worker 资源设置。
  • 当前 L1,scientificValidation=not_evaluated;没有设备运行或最终科学验收。

参考:官方 SDK、序列化接口。

Files

What ships with it

6 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. 3d ago Changed · +15 lines 082ac3e47a4b
  2. 17d ago First seen · 22 lines · 47 tokens per session scan A 01379637132b

Subscribe to this mod's changes

qua-programs is a skill published in the GitHub repository xi-zhao/OpenQuantum (75 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 899 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-09-29.

Related

Other skills, from other repositories

immybot

Every ImmyBot endpoint typed, plus a local SQLite mirror that answers the cross-tenant questions the web UI cannot. Trigger phrases: what failed in last night's maintenance window, which tenants are still on an old version of chrome, why didn't this computer get the deployment, what changed in the fleet since…

Servosity/msp-skills · 97 tokens

unifi-network

Use when the user asks to audit a UniFi Network gateway: list adopted devices and connected clients, review firewall policies, ACL rules, VLANs and WiFi broadcasts, see what changed in site config since the last check, spot hardware that just joined the network, or check switch port and PoE headroom. Wraps the local…

Servosity/msp-skills · 187 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

fortinet

Use when the user asks to audit, inventory or back up client FortiGate firewalls, or read FortiManager or FortiGate Cloud: grades every FortiGate in a devices file for firmware, SSL-VPN exposure, admin accounts and license expiry in one read-only pass, plus HA, tunnel and certificate health, policy hygiene and config…

Servosity/msp-skills · 149 tokens

animate

Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a…

stvlynn/dsh.fish · 96 tokens

gc-minimal-zine-poster-v0-3

Generate or analyze poetic paper-texture minimal zine posters with large negative space, a small editorial collage or focal element, experimental typography, and one clear color accent. Use when the user gives a theme, sentence, article, mood, object, photo, content brief, reference images, or an image folder and…

stvlynn/dsh.fish · 100 tokens