PennyLaneAI / catalyst

A JIT compiler for hybrid quantum programs in PennyLane
https://docs.pennylane.ai/projects/catalyst
Apache License 2.0
101 stars 26 forks source link

[WIP] Add QubitUnitaryFusion pass from development tutorial #880

Open Qottmann opened 1 week ago

Qottmann commented 1 week ago

Trying to add the QubitUnitaryFusion pass from the compiler passes development site. Struggling with the very basics and boilerplate 🫠

My approach: mimick behavior from ChainedHadamard.cpp and remove_chained_self_inverse.cpp, take on advice added in https://github.com/PennyLaneAI/catalyst/pull/872/ and use code snippets from compiler passes. The error messages are rather cryptic at this point so not sure how to continue.

github-actions[bot] commented 1 week ago

Hello. You may have forgotten to update the changelog! Please edit doc/changelog.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.

Paul: No need for changelog since this is do-not-merge