Skip to content

Reorganize graph-decomposition passes into a folder and deduplicate shared helpers#3010

Merged
maliasadi merged 5 commits into
mainfrom
gdecomp-reorg
Jul 10, 2026
Merged

Reorganize graph-decomposition passes into a folder and deduplicate shared helpers#3010
maliasadi merged 5 commits into
mainfrom
gdecomp-reorg

Conversation

@maliasadi

@maliasadi maliasadi commented Jul 10, 2026

Copy link
Copy Markdown
Member

Context:
Reorg the graph-decomposition, decompose-lowering and graph-solver src into a single GraphDecomposition folder, and extracts their shared logic into a DecompUtils.hpp to remove duplications.

No functional change! this is a structural/cleanup PR.

Possible Drawbacks:

  • DecompUtils is scoped to GraphDecomposition. QuantumDialect.cpp and RegisterDecompRuleResourcePass.cpp also reference target_gate, but they live in other passes/libs and I left them untouched to avoid cross-lib dependency.

Related GitHub Issues:
#2977 (comment)

[sc-124463]

@maliasadi maliasadi requested review from kipawaa and paul0403 July 10, 2026 16:14
@github-actions

Copy link
Copy Markdown
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md on your branch with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@maliasadi maliasadi added this to the delightning milestone Jul 10, 2026
Comment thread mlir/lib/Quantum/Transforms/GraphDecomposition/DecompUtils.hpp Outdated
Comment thread mlir/lib/Quantum/Transforms/GraphDecomposition/DecompUtils.cpp Outdated
Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com>

@paul0403 paul0403 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful

@kipawaa kipawaa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so much nicer! Thanks @maliasadi !

@maliasadi maliasadi merged commit e917017 into main Jul 10, 2026
38 checks passed
@maliasadi maliasadi deleted the gdecomp-reorg branch July 10, 2026 18:02
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.

3 participants