The DecompsableGateInterface was introduced to provide a generic interface for decomposition of quantum gates.
The interface's usecase would need to scale beyond being used by quantum gates solely in the Quantum dialect.
- Needed in Reference (
Qref) dialect as specified here. Corresponding PR
- Needed to replace the
to_ppr pass by making PBC gates extend this interface. Corresponding PR
Currently, the solutions as provided in the PRs discussed above involve implementing a separate DecompsableGateInterface for each dialect.
Moving the implementation to mlir/lib/Catalyst/Analysis/ could reduce the code duplication and simplify the C++ unittests.
Originally posted by @maliasadi in #3161 (comment)
The
DecompsableGateInterfacewas introduced to provide a generic interface for decomposition of quantum gates.The interface's usecase would need to scale beyond being used by quantum gates solely in the
Quantumdialect.Qref) dialect as specified here. Corresponding PRto_pprpass by making PBC gates extend this interface. Corresponding PRCurrently, the solutions as provided in the PRs discussed above involve implementing a separate
DecompsableGateInterfacefor each dialect.Moving the implementation to
mlir/lib/Catalyst/Analysis/could reduce the code duplication and simplify the C++ unittests.Originally posted by @maliasadi in #3161 (comment)