Skip to content

[Feature] Add Lexer + Parser for full QASM support #1

@Daksh-Shami

Description

@Daksh-Shami

Currently, we just parse the string form and try to match it to known patterns. We should probably construct a DAG or other alternative way to parse and represent Quantum Circuits.

The path taken is not important, as long as we can fulfil 2 core contracts:

  1. Zero cost abstraction -- Use Rust's type and trait system to do this with as little overhead as possible.
  2. ANY valid qasm file that can be read by Qiskit should be able to be supported by us as well.

Your task is to create a utility that accomplishes the goals above (takes in a String and returns a QuantumCircuit object).

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions