oqc-qat

oqc-qat is a skill for Claude Code, Codex from xi-zhao/OpenQuantum. It costs 52 tokens per session (815 once invoked), scanned A, original, MIT.

An offline compiler for square and Gaussian quantum-control pulses that produces timed samples and complex baseband buffers. A baseband buffer is the digital in-phase and quadrature signal prepared before hardware transmission.

In plain words
What is it for?
Use it to build one-qubit drive pulses, review their sample timelines, and compare square or Gaussian envelopes with the intended mathematical shape.
Why use it?
It lets you inspect amplitude, phase, duration and waiting periods without connecting to a device. The generated waveform is not a quantum-state simulation or hardware calibration result.

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 build one-qubit drive pulses, review their sample timelines, and compare square or Gaussian envelopes with the intended mathematical shape.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xi-zhao/openquantum/oqc-qat"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/oqc-qat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 815 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.00052 $0.00815
Opus 5.5 $0.00021 $0.00326
Sonnet 5.5 $0.00010 $0.00163
Haiku 4.5 $0.00005 $0.00081

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

Security

Grade A, and why

oqc-qat 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 4d 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/oqc-qat/SKILL.md · 42 lines

What it actually says

OQC QAT 离线脉冲缓冲区

原生 SDK 路径

本能力同时支持 OQC QAT 的原生公开 API。用户需要 程序、IR、编译流程、设备模型、脉冲与后端 时,由 Agent 在固定依赖环境中编写和运行任务代码,不限于下文便捷 Tool 的预设模型。

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

与 myQLM 共享 qat 导入名,但项目和环境不同,不能混装。

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

调用 qat_local 的 compile_oqc_qat_pulses。固定 qat-compiler==3.5.0,BSD-3-Clause。 先显式执行 node scripts/setup-paper-tools.mjs oqc-qat。

  1. 输入一组 square 或 gaussian 脉冲,给出 amplitude、phaseRadians、整数 durationNs 与 waitAfterNs。 Gaussian 的 sigmaNs 为正,表示标准差;Square 不使用这个参数。
  2. 固定虚拟单量子位 drive 通道,采样率 1 GHz;每项脉冲至少 1 ns,等待可以为零。 此数学包络不施加硬件幅度削顶,没有增益、上变频或校准参数。
  3. 工具用真实 QAT 指令构造器、EchoEngine 时序与缓冲区方法返回 instructions、timeline 及 real/imag。 timeline 使用半开样本区间 [startSample,endSample);每个样本间隔为 1 ns。
  4. Square 期望为 amplitude * exp(i * phaseRadians)。Gaussian 以脉冲中心为零、在采样箱中点计算 A exp(-t²/(2σ²)) exp(iφ),按请求时长截断,不把边缘强制归零。等待区间为零。

错误时长、非有限参数、SDK 初始化或构造失败会显式报错;缺少环境时显式 setup,不生成替代缓冲区。 使用独立 execution 设置控制超时、输出量和线程,不以测试样本规模作为能力上限。

QAT logger 的缓存限制在本工作区。适配不调用 engine execute、硬件驱动或 QCaaS 客户端; EchoEngine 是离线工具,不是量子态模拟器。波形缓冲区与理想数学包络的对照不证明真实测量或校准。 该能力为 L1,返回 scientificValidation=not_evaluated。

来源:官方仓库、 Echo 后端。

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. 4d ago Changed · +13 lines 9ba6af7413b6
  2. 18d ago First seen · 29 lines · 52 tokens per session scan A 57de478d469e

Subscribe to this mod's changes

oqc-qat is a skill published in the GitHub repository xi-zhao/OpenQuantum (75 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 815 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