Skip to content
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

Catalyst support for qml.CosineWindow #929

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

willjmax
Copy link

@willjmax willjmax commented Oct 1, 2024

Compiling a circuit with QJIT that begins with a CosineWindow state preparation results in a compiler error. This is because Catalyst has optimizations for when the first operation is a state preparation, but these optimizations are not supported for CosineWindow. A workaround is to only perform the state preparation optimizations on the StatePrep and BasisState classes, rather than the more general StatePrepBase class.

This workaround requires additional changes to Catalyst (PR #1166) and PennyLane (PR #6318).

@willjmax willjmax changed the title Catalyst support for qml.CosineWindow Catalyst support for qml.CosineWindow Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants