qiskit-qasm3-import icon indicating copy to clipboard operation
qiskit-qasm3-import copied to clipboard

declarations of type 'uint' are not supported

Open jwoehr opened this issue 2 years ago • 3 comments

The openqasm example adder.qasm fails to import with the error: qiskit_qasm3_import.exceptions.ConversionError: 24,0: declarations of type 'uint' are not supported

jwoehr avatar Mar 17 '23 23:03 jwoehr

Yeah, it's kind of deliberate at the moment (hence the error message) - Terra doesn't have support for representing any sort of non-const uint runtime value, so I had the importer raise errors.

Would it be better if I made the messages say "... because Terra cannot represent them"?

jakelishman avatar Mar 18 '23 02:03 jakelishman

Eh, just wanted to know

jwoehr avatar Mar 18 '23 02:03 jwoehr

Thanks @jakelishman

jwoehr avatar Mar 18 '23 02:03 jwoehr