Circuit Optimizer
Developmentcircuit-optimizerCircuit Optimizer is an Agent Skill for development published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Quantum circuit optimization skill for gate reduction, depth minimization, and hardware-aware compilation
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/domains/science/quantum-computing/skills/circuit-optimizer/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/circuit-optimizer, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Circuit Optimizer
Purpose
Provides expert guidance on quantum circuit optimization techniques for reducing gate count, minimizing depth, and adapting circuits to hardware constraints.
Capabilities
- Circuit depth reduction algorithms
- Gate cancellation and merging
- Peephole optimization
- Template matching optimization
- Commutation analysis
- Hardware topology-aware routing
- Two-qubit gate minimization
- Compilation pass orchestration
Usage Guidelines
- Analysis: Profile circuit for optimization opportunities (gate counts, depth, connectivity)
- Gate Reduction: Apply cancellation and merging rules for equivalent gates
- Depth Optimization: Parallelize independent operations where topology allows
- Hardware Mapping: Route circuits to respect hardware connectivity constraints
- Verification: Validate circuit equivalence after optimization
Tools/Libraries
- Qiskit transpiler
- pytket (t|ket>)
- PyZX
- Cirq optimizers
- BQSKit