✨ 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? |
|
ahh, that explains a thing 👍 |
Yeah, we often squash, but it's not a must. Either way, we generally don't stress too much about having the perfect commit history in a PR. |
…n-pass' into feat/swap-absorption-pass
|
the linter suggests to pass a const reference in
but this results in the other lint warnings are fixed 👍 |
I tried around a bit locally and just pushed a potential fix. I think this was actually pointing to an issue. 🤔 Let me know if this looks good to you! 🙂 |
fine with me 👍 do you have any other feedback, as this is pretty much what we've discussed on this feature? |
|
@jmoosburger If you think the pull request is ready to review, feel happy to request a review from someone (me) for on the top right of the pull request page. |
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! |

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.