✨ Add absorb-swaps pass#1750
Conversation
…-quantum-toolkit/core into feat/swap-absorption-pass
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
works fine now 💪 i have another conceptional question though: which of the following circuits is correct? or: in my opinion its the second circuit 201, but the implementation we discussed produces the first result. |
|
the linter produces warnings on the one hand, but failes because of a http-error 403 (unauthorized) on the other hand. see here: https://github.com/munich-quantum-toolkit/core/actions/runs/26597942119/job/78373906843?pr=1750 is there anything i can do about it? |
Unfortunately, the action cannot post comments on PRs coming from a fork. 😕 That said, the report can also be found in the summary of the run: https://github.com/munich-quantum-toolkit/core/actions/runs/26597942119/attempts/1#summary-78373906843 |
The best way to visualize this is to apply the SWAPs sequentially: |
so if i resolve all the warnings the lint check will succeed, as it does not post a comment? |
If you resolve all warnings the |
Which way is recommended? |
Unfortunately i cannot edit the reviewers-section °^^ But i recognized, i need to add a summary and a description for the new pass first ☝️ |
Signed-off-by: Johannes Moosburger <96540096+jmoosburger@users.noreply.github.com>
I added a rather short description as i think it's not that complicated. feel free to share your personal opinion on that! |
MatthiasReumann
left a comment
There was a problem hiding this comment.
It took us a pretty long time and three pull requests but we are finally here! Congratulations on your potentially first contribution to the MLIR compiler collection 🎉
I've left some small remarks which should be fairly easy to integrate. Otherwise, great job! 🚀
Co-authored-by: matthias <matthias@bereumann.com> Signed-off-by: Johannes Moosburger <96540096+jmoosburger@users.noreply.github.com>
Co-authored-by: matthias <matthias@bereumann.com> Signed-off-by: Johannes Moosburger <96540096+jmoosburger@users.noreply.github.com>
Signed-off-by: Johannes Moosburger <96540096+jmoosburger@users.noreply.github.com>
Thanks for your help and patience! |
|
@jmoosburger I've pushed some minor changes directly. Let's see what @burgholzer has to say, but I think this one should be good to go 🚀 |
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>

Description
Checklist
I have added migration instructions to the upgrade guide (if needed).If PR contains AI-assisted content:
I have disclosed the use of AI tools in the PR description as per our AI Usage Guidelines.AI-assisted commits include anAssisted-by: [Model Name] via [Tool Name]footer.I confirm that I have personally reviewed and understood all AI-generated content, and accept full responsibility for it.