Skip to content

Decomposition passes should perform clean up by themselves #12

@echavarria-mqv

Description

@echavarria-mqv

@aleksandraswierkowska The passes:

  • QirRzToRxRyRxDecomposition
  • QirU3ToRzRyRzDecomposition
  • QirCNotToHCZHDecomposition
  • QirCZToHCnotHDecomposition
  • QirSwapToCnotsDecomposition

use the injectedAnnotations routine to place in the metadata those functions that should subsequently be marked with a "replaceWith" attribute by the QirFunctionAnnotator pass. Then, the QirFunctionReplacement pass has to replace those instructions marked with "replaceWith". This behaviour should change as follows:

  1. The QirFunctionAnnotator and the QirFunctionReplacement passes should be deleted
  2. Each of the above 5 passes should take care of replacing the gates accordingly

See also: https://github.com/Munich-Quantum-Software-Stack/QRM/issues/6#issue-2327312705

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions