circuit-optimizer

Quantum circuit optimization skill for gate reduction, depth minimization, and hardware-aware compilation

509 stars

Best use case

circuit-optimizer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Quantum circuit optimization skill for gate reduction, depth minimization, and hardware-aware compilation

Teams using circuit-optimizer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/circuit-optimizer/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/domains/science/quantum-computing/skills/circuit-optimizer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/circuit-optimizer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How circuit-optimizer Compares

Feature / Agentcircuit-optimizerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Quantum circuit optimization skill for gate reduction, depth minimization, and hardware-aware compilation

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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

Related Skills

svg-optimizer

509
from a5c-ai/babysitter

Optimize SVG assets, generate sprites, and convert to React components

doe-optimizer

509
from a5c-ai/babysitter

Skill for optimizing experimental designs using DOE principles

qiskit-circuit-builder

509
from a5c-ai/babysitter

IBM Qiskit integration skill for quantum circuit construction, transpilation, and execution on IBM Quantum hardware

cirq-circuit-builder

509
from a5c-ai/babysitter

Google Cirq integration skill for quantum circuit design and execution on Google quantum processors

nanoparticle-synthesis-optimizer

509
from a5c-ai/babysitter

Synthesis parameter optimization skill for metal, semiconductor, and oxide nanoparticle production with automated protocol generation and reproducibility validation

drug-encapsulation-optimizer

509
from a5c-ai/babysitter

Drug delivery formulation skill for optimizing drug loading, encapsulation efficiency, and release kinetics

warehouse-slotting-optimizer

509
from a5c-ai/babysitter

Warehouse slotting and layout optimization skill for pick path minimization and space utilization.

network-optimizer

509
from a5c-ai/babysitter

Network optimization skill for transportation, assignment, and flow problems on graph structures.

facility-layout-optimizer

509
from a5c-ai/babysitter

Facility layout optimization skill for material flow minimization and space utilization.

signal-timing-optimizer

509
from a5c-ai/babysitter

Traffic signal timing optimization skill for cycle length, phasing, and coordination

scaffold-design-optimizer

509
from a5c-ai/babysitter

Tissue engineering scaffold design optimization skill for pore size, porosity, and mechanical properties

prosthetics-design-optimizer

509
from a5c-ai/babysitter

Prosthetics and orthotics design optimization skill integrating biomechanical requirements with manufacturing constraints