Skip to content

Conversation

flowerthrower
Copy link
Collaborator

Description

This PR originates from this mqt-mlir PR and introduces conversions between Catalysts quantum dialect and the MQTOpt dialect.

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

@github-project-automation github-project-automation bot moved this to In Progress in MQT Core Mar 19, 2025
@flowerthrower flowerthrower self-assigned this Mar 19, 2025
@flowerthrower flowerthrower added MLIR Anything related to MLIR feature New feature or request labels Mar 19, 2025
@flowerthrower flowerthrower added this to the MLIR Support milestone Mar 19, 2025
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@burgholzer
Copy link
Member

Now that #879 is merged, this needs to be rebased

@ystade ystade marked this pull request as draft May 9, 2025 09:29
@ystade
Copy link
Collaborator

ystade commented May 9, 2025

We decided that we first merge the plugin (#881) and afterward integrate those changes here and then merge this PR.

This has the following advantages:

  • Right now, to test the conversion passes of this PR, quantum-opt must be linked with a target from the Catalyst project, in particular the MLIRQuantum target containing the dialect. This is necessary even tough apart from testing there is no real use case for processing catalyst mlir without using the frontend Pennylane.
  • Vice versa, the plugin does not need to be linked with any target of the Catalyst project, it only requires the header files that (hopefully) will be shipped with the pip wheel of catalyst sonn. Then this plugin can (and must) be invoked from pennylane and this way the conversion passes can be tested without requireing any target of catalyst. Only an easy install of catalyst in the python environment is necessary.

@ystade ystade mentioned this pull request May 9, 2025
4 tasks
@flowerthrower
Copy link
Collaborator Author

The conversions implemented in this PR were moved to #881.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request MLIR Anything related to MLIR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants