OpenParable
Skip to content
← Back to skills

Circuit Optimizer

Development
circuit-optimizer

Circuit 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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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

  1. Analysis: Profile circuit for optimization opportunities (gate counts, depth, connectivity)
  2. Gate Reduction: Apply cancellation and merging rules for equivalent gates
  3. Depth Optimization: Parallelize independent operations where topology allows
  4. Hardware Mapping: Route circuits to respect hardware connectivity constraints
  5. Verification: Validate circuit equivalence after optimization

Tools/Libraries

  • Qiskit transpiler
  • pytket (t|ket>)
  • PyZX
  • Cirq optimizers
  • BQSKit