SimoneGasperini / qiskit-symb

Python package for the symbolic evaluation of parameterized quantum circuits in Qiskit
https://pypi.org/project/qiskit-symb/
Apache License 2.0
26 stars 2 forks source link

Fix weird behavior related to Qiskit `CUGate` issues #5

Closed SimoneGasperini closed 10 months ago

SimoneGasperini commented 1 year ago

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.