Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Importing some qasmbench files fail due to int overflow #17

Closed
nonhermitian opened this issue Jul 15, 2024 · 1 comment
Closed

Importing some qasmbench files fail due to int overflow #17

nonhermitian opened this issue Jul 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nonhermitian
Copy link
Collaborator

E.g. when importing 'benchpress/qasm/qasmbench-large/cc_n301/cc_n301.qasm' using QuantumCircuit.from_qasm_file gives

thread '<unnamed>' panicked at crates/qasm2/src/lex.rs:279:42:
called `Result::unwrap()` on an `Err` value: ParseIntError { kind: PosOverflow }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
PanicException: called `Result::unwrap()` on an `Err` value: ParseIntError { kind: PosOverflow }

I am guessing it is because of the large c_if statements, e.g.

if(c0==2037035976334486086268445688409378161051468393665936250636140449354381299763336706183397376) h q0[0];
@nonhermitian
Copy link
Collaborator Author

Closing as this is a generic issue. Will add a circuit contruction test from QASM that has a big int to better track this

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant