Qiskit / qiskit-qasm3-import

Importer from OpenQASM 3 to Qiskit's QuantumCircuit
https://qiskit.github.io/qiskit-qasm3-import
Apache License 2.0
15 stars 7 forks source link

declarations of type 'uint' are not supported #10

Open jwoehr opened 1 year ago

jwoehr commented 1 year ago

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

jakelishman commented 1 year ago

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"?

jwoehr commented 1 year ago

Eh, just wanted to know

jwoehr commented 1 year ago

Thanks @jakelishman