catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

Pipelines should have one source of truth

Open paul0403 opened this issue 6 months ago • 0 comments

Currently we have two pipeline registries: https://github.com/PennyLaneAI/catalyst/blob/main/frontend/catalyst/pipelines.py: the frontend pipeline is used by default qjit program flow https://github.com/PennyLaneAI/catalyst/blob/main/mlir/lib/Driver/Pipelines.cpp: the cpp pipeline is used by cli and things like having stage names in the pipeline being passed into the pipeline kwarg on qjit, e.g. in the oqd, mbqc, ppm pytests.

This seems redundant, not to mention error-prone when developing and maintaining.

With more and more custom pipelines emerging and people start thinking about pipeline organization more (e.g. #1758 ), it would be good to have pipeline registration in just one place.

paul0403 avatar May 22 '25 13:05 paul0403