Skip to content

Importing some qasmbench files fail due to int overflow #17

@nonhermitian

Description

@nonhermitian

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];

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions