Skip to content

Conversation

@albi3ro
Copy link
Contributor

@albi3ro albi3ro commented Nov 21, 2025

Context:

This PR is basically just to revert #1657 ....

We are currently using the global qml.capture.enabled() kwarg to figure out if we are using the new frontend.

The problem is that the global toggle controls both catalyst's frontend and how pennylane executes. But executing normal qnodes when capture is enabled is an unmaintained experimental feature. So we need to separate out using the program capture frontend in catalyst and executing with program capture in PennyLane.

Description of the Change:

Adds the experimental_capture kwarg back onto QJIT.

Updates tests. So many tests.

Benefits:

We can turn program capture on with catalyst with also turning it on in pennylane executions.

Possible Drawbacks:

So many tests... Also just reverting something we had earlier 🤦‍♀️

Related GitHub Issues:

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.

2 participants