Skip to main content
Jeden Skill in Manus ausführen
mit einem Klick

reversible-circuit-validation

Sterne3
Forks0
Aktualisiert13. Juni 2026 um 20:50

Validate and debug the CORRECTNESS of a reversible or quantum circuit — not its size. Use this whenever a circuit "gives wrong answers on some inputs", "ancilla aren't returning to zero / uncomputation is leaving garbage", there are "phase errors", "it passes my basis-state test but I'm not sure it's right in superposition", or someone needs to test a reversible adder/multiplier/modular-arithmetic block before trusting it inside Shor's. Covers the classical/phase/ancilla (cls/pha/anc) three-channel decomposition, differential testing against a trusted reference on RANDOM inputs, the forward-inverse identity check, telling a designed approximation failure apart from a real bug, and localizing the first broken op. Fires on informal phrasing ("my uncompute is dirty", "results get corrupted when I compose it", "is 0.3% failure expected?"). For making a correct circuit SMALLER use peak-qubit-reduction (qubits) or toffoli-reduction (gates); this skill owns CORRECTNESS.

Installation

Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.

Datei-Explorer
2 Dateien
SKILL.md
readonly