At the moment, there is no way to properly solve issue #4. Indeed, it is due to a Qiskit well known problem, related to the global phase parameter gamma in the CUGate constructor, with no corresponding parameter in the UGate constructor (potential fix: https://github.com/Qiskit/qiskit-terra/pull/11032).
Currently, the best option is to simply set the CUGate as not implemented to avoid weird behavior and misleading error messages.
At the moment, there is no way to properly solve issue #4. Indeed, it is due to a Qiskit well known problem, related to the global phase parameter gamma in the
CUGate
constructor, with no corresponding parameter in theUGate
constructor (potential fix: https://github.com/Qiskit/qiskit-terra/pull/11032).Currently, the best option is to simply set the
CUGate
as not implemented to avoid weird behavior and misleading error messages.