Skip to content

✨ Support multiple functions #1659

Description

@denialhaag

Currently, our builders and conversions can only handle a single function. To support more arbitrary programs, we should extend this. An initial implementation can be found in #1396.

Things to keep in mind include:

  • The builders must have an API for creating programs with multiple functions.
  • The conversions must handle programs with multiple functions.
  • The modifiers must handle bodies that comprise only a function call (in addition to the respective yield operation) correctly.
  • Trivial function calls should be canonicalized away (e.g., consider a function that applies two X gates to the same qubit). In particular, this should also happen if the function call is inside a modifier.

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

    MLIRAnything related to MLIRfeatureNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions