catalyst.PlxprCaptureCFCompatibilityError¶
- exception PlxprCaptureCFCompatibilityError(control_flow_type)[source]¶
Error raised when Catalyst control flow is used with PennyLane capture enabled.
This error indicates that Catalyst’s control flow functions (for_loop, while_loop, cond) cannot be used in contexts where PennyLane’s capture mode is active. Users should use the corresponding PennyLane functions instead for compatibility with capture functionality.
code/api/catalyst.PlxprCaptureCFCompatibilityError
Download Python script
Download Notebook
View on GitHub