qat.frontend.parsers.qir module
- class ArgumentType(value)
Bases:
EnumAn enumeration.
- Label = 4
- Number = 3
- Qubit = 1
- Result = 2
- class QIRParser(results_format=None)
Bases:
objectUsed to parse QIR files and walk the AST to assemble a quantum program.
The parser makes API calls to the instruction builder passed at instantiation to allow for dynamic building of programs. This object is only responsible for interpreting and walking the QIR program.
- parse(builder, qir_file)