Skip to main content
在 Manus 中运行任何 Skill
一键导入

toffoli-reduction

星标3
分支0
更新时间2026年6月20日 23:42

Reduce the Toffoli / T-gate / non-Clifford count of a reversible or quantum circuit — the expensive, magic-state-bound resource that dominates error-corrected runtime. Use this whenever someone wants to "cut the T-count", "lower the Toffoli count", "reduce non-Clifford gates", "need fewer magic states", "my carry uncomputation is half my gates", or improve the gate factor of a qubits×Toffoli score. Covers venting carry-uncompute into measurement+phase fixups, conditional/measured replay so gates only execute on the branch that needs them, fused adders/folds, cross-block algebraic fusion of modular add/negate chains, ancilla-free majority, skipping provably-redundant cleanup, and avoiding full materialization. Fires on informal phrasing ("too many Toffolis", "T-count is my bottleneck", "can I make this uncompute free") and distinguishes emitted vs average-executed gate counts. For lowering the QUBIT/width count instead, use peak-qubit-reduction; this skill owns the GATE axis.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
3 个文件
SKILL.md
readonly