---
name: circuit-optimizer-28825fd1f189
description: Quantum circuit optimization skill for gate reduction, depth minimization, and hardware-aware compilation
allowed-tools:
  - Bash
  - Read
  - Write
  - Edit
  - Glob
  - Grep
metadata:
  specialization: quantum-computing
  domain: science
  category: circuit-design
  phase: 6
graph:
  domains: [domain:quantum-computing]
  specializations: [specialization:quantum-computing]
  skillAreas: [skill-area:compiler-implementation, skill-area:graph-algorithms, skill-area:mathematical-reasoning]
  workflows: [workflow:experiment-design]
  roles: [role:research-engineer, role:computational-scientist]
---

# 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


---
Source attribution: a5c-ai
Original project: https://github.com/a5c-ai/babysitter/blob/feb68abe397acc14f32b34984975c48fedba2b33/library/specializations/domains/science/quantum-computing/skills/circuit-optimizer/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

# MIT License

Copyright (c) 2025 A5C AI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: a5c-ai
Original project: https://github.com/a5c-ai/babysitter/blob/feb68abe397acc14f32b34984975c48fedba2b33/library/specializations/domains/science/quantum-computing/skills/circuit-optimizer/SKILL.md
Attribution basis: Source repository record

Fields of work: Data & Analytics, Development & Engineering, Education & Research, Product Management
Roles: Data Scientist, ML / AI Engineer, Product Manager, Researcher, Technical Product Manager
Specialties: Specialty not specified
Tools: Bqskit, Cirq, Pyzx, Qiskit, Pytket
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: e8506e22e2d73050dbb306f70a6f73911b6e5060fd6ef19acf51b905675fdfe4
