pennylane
pennylane copied to clipboard
[Compiler] Add Catalyst mid-circuit measurement
Context:
This draft PR includes the proposed support for QJIT compatible qml.measure and qml.select_measure.
TODO:
- [ ] finalize the UI and implementation details.
Note This support will be revisited in Q1 when Catalyst and PL mid-circuit measurement supports can be matched. At the moment (v0.33.1), PL doesn't support mid-circuit measurement via random postselection. That's the style implemented and supported in Catalyst.
[sc-46407]