Problem Statement
PowOp::getUnitaryMatrix does not return a correct unitary for the general case. Composing multi-gate bodies into a single unitary and raising them to an arbitrary exponent is currently not supported.
Proposed Solution
Compute the full unitary of a PowOp (#1603) by 1.composing the body into a single matrix U (product of all body unitaries in program order), then 2. raising it to the exponent p once a solution for #1811 is implemented.
Problem Statement
PowOp::getUnitaryMatrixdoes not return a correct unitary for the general case. Composing multi-gate bodies into a single unitary and raising them to an arbitrary exponent is currently not supported.Proposed Solution
Compute the full unitary of a
PowOp(#1603) by 1.composing the body into a single matrix U (product of all body unitaries in program order), then 2. raising it to the exponent p once a solution for #1811 is implemented.