@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:
- The
QirFunctionAnnotator and the QirFunctionReplacement passes should be deleted
- 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
@aleksandraswierkowska The passes:
QirRzToRxRyRxDecompositionQirU3ToRzRyRzDecompositionQirCNotToHCZHDecompositionQirCZToHCnotHDecompositionQirSwapToCnotsDecompositionuse the
injectedAnnotationsroutine to place in the metadata those functions that should subsequently be marked with a "replaceWith" attribute by theQirFunctionAnnotatorpass. Then, theQirFunctionReplacementpass has to replace those instructions marked with "replaceWith". This behaviour should change as follows:QirFunctionAnnotatorand theQirFunctionReplacementpasses should be deletedSee also: https://github.com/Munich-Quantum-Software-Stack/QRM/issues/6#issue-2327312705