Closed jcjaskula-aws closed 2 months ago
Parameter can sometimes be composed of only a single numerical values, which is not translated to a FreeParameter.
Could you elaborate on this point a bit? Do you mean the qiskit's parameter is a single parameter instead of a List? If so, I'm not sure which part fixes this.
Could you elaborate on this point a bit? Do you mean the qiskit's parameter is a single parameter instead of a List? If so, I'm not sure which part fixes this.
Parameter(1.23) is valid and cannot be translated to a FreeParameter object. So we just return a float here.
It is probably worth investigating the problem fixed here in a bigger picture. Closing.
Summary
The transpiler sometimes returns payloads that we don't translate well. This PR fixes a couple of issues I ran into.
Details and comments
Parameter
s can sometimes be composed of only single numerical values, which are not translated to aFreeParameter
s.