Qiskit / openqasm3_parser

Parser and semantic analyzer for the OpenQASM3 language
Apache License 2.0
10 stars 11 forks source link

Modify the parser to make importing to Qiskit easier or possible #201

Closed jlapeyre closed 5 months ago

jlapeyre commented 5 months ago

The parser no longer is expected to parse bogus gate definitions from stdgates.inc. Rather, symbols are entered as if it had been parsed. This requires modifying how the Qiskit importer works.

The main change here is implementing SymbolTable::gates. This returns some information on all gates found in the symbol table. Included is the minimal information required for the Qiskit importer to map SymbolIds to Qiskit gates.

Several other changes are noted in the git commit messages