Skip to main content
Ejecuta cualquier Skill en Manus
con un clic

toffoli-reduction

Estrellas3
Forks0
Actualizado20 de junio de 2026 a las 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.

Instalación

Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.

Explorador de archivos
3 archivos
SKILL.md
readonly