Skip to content

Create a common DecomposableGateInterface across dialects. #3223

Description

@yde773786

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.

  1. Needed in Reference (Qref) dialect as specified here. Corresponding PR
  2. 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions