-
-
Notifications
You must be signed in to change notification settings - Fork 55
✨ Add rotation-gate merging using quaternions #1407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
burgholzer
merged 58 commits into
munich-quantum-toolkit:main
from
J4MMlE:quaternion-rotation-merging
Apr 20, 2026
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
b566c21
✨ Add quaternion rotation merging pass with core algorithm
J4MMlE 34a9e7c
✅ Add tests for quaternion merging and simplify pattern matching
J4MMlE 6749f3c
🐛 Fix u-gate combination and improve test infrastructure
J4MMlE f8aaa9d
♻️ Refine pass implementation, error handling, and documentation
J4MMlE 44c3c62
🐛 Handle gimbal lock and add edge case tests
J4MMlE aa8caf4
♻️ Final improvements: type checks, parameter ordering, pipeline test
J4MMlE 9f468aa
Merge branch 'main' into merge-main
MatthiasReumann f75edf8
Fix compiler pipeline test
MatthiasReumann cfe9eda
Add RotationGateMergingPass test
MatthiasReumann 1a22b2b
Fix test
MatthiasReumann 54e612b
🔀 Merge with main
burgholzer c11e856
📝 Split off merge-rotation-gates pass changelog entry
burgholzer 05d5fdc
✅ refine compiler pipeline test
burgholzer 22d17ad
🚨 fix clang-tidy warning
burgholzer 1ee703b
🎨 remove most of the redundant `mlir::` namespace specifiers
burgholzer fb0d8cb
✏️ Fix typo in changelog entry
burgholzer abdacce
🚨 Use `OpType::create` methods
burgholzer b267779
♻️ Rename compiler flag and clean up docstrings
J4MMlE 409f94d
♻️ Remove single-use constraint on rotation gate
J4MMlE e707dc5
♻️ Refactor operation replacement
J4MMlE e506cec
♻️ Consolidate constants into shared Constants struc
J4MMlE 7e6299b
🔀 Merge with main
J4MMlE 40b697d
✨ Add support for POp, ROp, U2Op
J4MMlE 7198eb3
🐛 Normalize UOp alpha/gamma angles after quaternion-to-Euler conversion
J4MMlE e7b8da6
♻️ Refactor from pairwise to chain-based merging
J4MMlE e16f12d
🔀 Merge with main
J4MMlE b2a7d4b
🐛 fix collectChain UB, linter warnings, and inaccurate test and comment
J4MMlE f889a11
🔥 remove dead pairwise gate merge
J4MMlE 114392b
🚨 fix linter warnings
J4MMlE 3bf55ff
🩹 fix linter warnings and emit merged op at chain tail
J4MMlE 212605a
📝 add note for discarding of global phase
J4MMlE 0fbd0d8
🔀 Merge with main
J4MMlE 64f7efa
🚨 Fix NOLINT code
J4MMlE 01c4bc2
📝 Update doc strings
J4MMlE 308c45a
♻️ Emit UOp inside matchAndRewrite
J4MMlE 2b26336
♻️ Simplify merge condition
J4MMlE 5a46fdc
✨ Add global phase tracking
J4MMlE 14b2855
♻️ Use modulus based normalization
J4MMlE e7b4fc7
♻️ Simpler chain collect loop
J4MMlE 4fe98af
♻️ Stricter gate types for conversion functions
J4MMlE 0d67494
🚚 Naming consistency
J4MMlE 4566735
✨ Enable merge pass by default
J4MMlE a2adde2
✅ Add global phase checks to tests
J4MMlE deda0b9
📝 Fix Documentation
J4MMlE ae434e4
Merge branch 'main' into quaternion-rotation-merging
denialhaag 2784094
Remove faulty test
denialhaag 324f8db
Remove outdated comment
denialhaag b42f9f7
Address the Rabbit's comment
denialhaag e873baa
Simplify diff
denialhaag a02e8c7
Improve pass description
denialhaag e75c5b6
Fix linter errors
denialhaag 83f36d0
Improve some docstrings
denialhaag ba641ad
Remove unneeded operations immediately
denialhaag 61a6cf2
Reduce test duplication
denialhaag 7f36f92
Streamline tests
denialhaag e842ef6
Merge branch 'main' into quaternion-rotation-merging
denialhaag e777252
✅ add SymPy reference script
J4MMlE 7daba0f
♻️ consistent format for floating point constants
J4MMlE File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.