tnqs-dynamics

tnqs-dynamics is a skill for Claude Code, Codex from xi-zhao/OpenQuantum. It costs 56 tokens per session (814 once invoked), scanned A, original, MIT.

A Julia research skill for simulating tensor networks on irregular graphs, quantum circuits, and time evolution. It uses CTMRG, a method for approximating large two-dimensional tensor networks, and checks sampling weights and numerical errors.

In plain words
What is it for?
Use it to study circuits, dynamics, or equilibrium states on non-grid planar graphs with TensorNetworkQuantumSimulator.jl. It supports small-system checks before scaling up.
Why use it?
It provides a defined workflow for running these calculations while preserving the original graph and recording approximation details. It also helps distinguish a completed computation from scientific validation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it to study circuits, dynamics, or equilibrium states on non-grid planar graphs with TensorNetworkQuantumSimulator.jl. It supports small-system checks before scaling up.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xi-zhao/openquantum/tnqs-dynamics"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/tnqs-dynamics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 814 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.00056 $0.00814
Opus 5.5 $0.00022 $0.00326
Sonnet 5.5 $0.00011 $0.00163
Haiku 4.5 $0.00006 $0.00081

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

Security

Grade A, and why

tnqs-dynamics 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 29d ago.

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/tnqs-dynamics/SKILL.md · 34 lines

What it actually says

非规则图张量网络

原生 SDK 路径

本能力使用 TensorNetworkQuantumSimulator.jl 的原生公开 API。用户需要 非规则图张量网络、电路、时间演化、平面 CTMRG 与采样 时,由 Agent 在固定依赖环境中编写和运行任务代码。

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

CTMRG 需要有效平面嵌入;分别记录状态/环境维数、截断、精度与收敛。采样权重相对于实际规约态,函数名 certified 不构成科学验收。

本入口复用宿主文件与代码工具,没有新增通用执行 Tool。原生 SDK 受上游版本、可选依赖、宿主资源与用户授权约束。已禁用或被拒绝的动作不能借代码路径绕过。执行状态和科研验收分别报告。

适用于保留处理器或晶格原始图结构的电路、动力学及平衡态计算。优先沿用已有 quimb、TeNPy 或 Yao 任务;需要在同一非方格图上比较 BP、boundary MPS 与有限平面 CTMRG 时选择本能力。

方法与边界

  1. 固定图、顶点到物理位点映射、位置、边、输入态、模型和 CPU 精度。CTMRG 要求连通、不同顶点位置、无交叉的平面嵌入;失败时报告原始原因,不静默换图或换算法。
  2. 先用可枚举的小系统对照独立稠密矩阵或指标求和,再扩大问题。状态 bond dimension、环境维数、门截断、时间步和浮点误差分别记录;有环图 BP 收敛不等于精确。
  3. v0.5.0 使用 Qiskit 的旋转角约定;freenergy=-ln Z。CTMRG 默认 SVD projector,:eig 为实验选项,不保证支持任意平面图。不要把环境维数增大当成单调误差定理。
  4. sample_certified 的权重对应实际规约/缩放后的采样态。记录归一化、seed、样本数、权重、支持集和统计容差;函数名称不是严格误差证书或最终 Acceptance。
  5. 公开 API、用户图及模型不受示例大小限制。Qiskit.jl、GPU、MPI 与额外 Python 桥接不在默认环境中;QASM 测量、反馈和动态电路语义须另行核验。

按使用与验证说明准备环境,然后通过宿主代码工具运行可编辑的原生程序。指南与环境由 DSH/Codex 共享,不新增转发 Tool、MCP Server 或 Runtime。

保留输入、完整输出、诊断、版本和锁摘要。工程检查与有限数值对照不推导科学验收,scientificValidation=not_evaluated。

Files

What ships with it

3 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. 29d ago First seen · 34 lines · 56 tokens per session scan A db0951b23618

Subscribe to this mod's changes

tnqs-dynamics is a skill published in the GitHub repository xi-zhao/OpenQuantum (75 stars, last pushed 5d ago), licensed MIT. It adds 56 tokens to every session and 814 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-11-05.

Related

tnqs-dynamics compared with skills from other repositories

tnqs-dynamics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tnqs-dynamicsxi-zhao/OpenQuantumSkill755d agoMITA56Claude Code, Codex
manim-animatorsandbaseai/sandbase-skillsSkill21212d agoApache-2.0A59Claude Code
academic-researchsandbaseai/sandbase-skillsSkill21212d agoApache-2.0A39Claude Code
academic-trend-researchsandbaseai/sandbase-skillsSkill21212d agoApache-2.0A43Claude Code
openalex-guidecyanheads/openalex-mcp-serverSkill1816d agoApache-2.0A96Claude Code
arxiv-guidecyanheads/arxiv-mcp-serverSkill7yesterdayApache-2.0A81Claude Code
alexandriaThe-40-Thieves/alexandria-mcpSkill317d agoMITA71Claude Code