Closed nonhermitian closed 1 month ago
Thanks for the report. That's a pretty gross case. We fixed much of this in #12140, but this exact one implies we might need big-int handling in Rust space, if not now (we can hack around while we're still using Python space) then later just to represent huge classical register conditions.
Environment
What is happening?
As reported https://github.com/Qiskit/benchpress/issues/17, qasm imports lead to int overflows when qasm files contain large ints. E.g. this example will fail
with
How can we reproduce the issue?
Run the above QASM file with
QuantumCircuit.from_qasm_file
What should happen?
It should be imported
Any suggestions?
The int is larger than int64, which I assume is the root cause.