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:
- Zero cost abstraction -- Use Rust's type and trait system to do this with as little overhead as possible.
- 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).
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:
Your task is to create a utility that accomplishes the goals above (takes in a
Stringand returns aQuantumCircuitobject).