PennyLaneAI / catalyst

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

Improve error handling in callbacks when users use incorrect type annotations #849

Open erick-xanadu opened 3 weeks ago

erick-xanadu commented 3 weeks ago

This may lead to garbage memory being used or overwriting memory. I think this can be caught doing static type checking in MLIR. Probably during the lowering of backprop op.