Skip to content

Cqt 455 implement analyzer pass in open squirrel#682

Open
SoufiTNO wants to merge 2 commits into
developfrom
CQT-455-Implement-analyzer-pass-in-OpenSquirrel
Open

Cqt 455 implement analyzer pass in open squirrel#682
SoufiTNO wants to merge 2 commits into
developfrom
CQT-455-Implement-analyzer-pass-in-OpenSquirrel

Conversation

@SoufiTNO
Copy link
Copy Markdown
Contributor

@SoufiTNO SoufiTNO commented May 5, 2026

Adds a new ''Analyzer'' pass type and the first concrete implementation, "'CircuitAnalyzer'', which computes structural metrics describing a quantum circuit. Metrics are organized into four categories :

  • Size: number of qubits, gates, two-qubit gates, two-qubit gate percentage, depth
  • Interaction graph (IG): average shortest path, std of adjacency, diameter, central dominance, average degree, number of maximal cliques, clustering coefficient
  • Gate dependency graph (GDG): critical path length, path length mean/std, fraction of gates on critical path
  • Density: density score, idling score

elenbaasc and others added 2 commits April 30, 2026 10:29
- Implement Analyzer ABC in opensquirrel/passes/analyzer/general_analyzer.py
- Implement CircuitAnalyzer with size, IG, GDG, and density metrics
- Update Circuit.analyze() return type to dict[str, Any]
- Add 14 tests in tests/passes/analyzer/
- Update CHANGELOG
@SoufiTNO SoufiTNO requested a review from elenbaasc May 5, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants