Commenting for new issue:
Eliminate the rebinding of pl allocation primitives during the from_plxpr lowering, since these primitives now have a direct to mlir lowering. Then the TODO can be removed.
Also remove the qref_alloc_p and qref_dealloc_p primitives, and replace their use in the handle_qnode/calling_convention function with the equivalent pennylane primitives.
Originally posted by @dime10 in #3029 (comment)
Commenting for new issue:
Eliminate the rebinding of pl allocation primitives during the from_plxpr lowering, since these primitives now have a direct to mlir lowering. Then the TODO can be removed.
Also remove the qref_alloc_p and qref_dealloc_p primitives, and replace their use in the handle_qnode/calling_convention function with the equivalent pennylane primitives.
Originally posted by @dime10 in #3029 (comment)