Open TheGupta2012 opened 1 year ago
Thanks for the report - looks like I made mistake with the typing of the pi
built-in, and also that there's no promotion rules from angle
to float
in the expression evaluator. I think that there's no implicit promotion allowed in OQ3 for that because it's quite a non-trivial bit-to-bit transformation (unlike integer promotions), but if I fix the typing of pi
, that shouldn't be a problem within the gate context you're concerned about here.
possibly related to: https://github.com/Qiskit/qiskit/issues/11071
I was trying to make a mapping from the qasm2 standard gates present in
qelib1.inc
located in the terra lib. I am encountering the following error while loading the definition of therxx
gate as supplied in the.inc
file -I used the following script -
From the traceback, it looks like the line
u2(-pi, pi-theta) b;
is not getting parsed correctly. More specifically, thepi - theta
parameter seems to be the source of the error.