QuTech-Delft / OpenQL

OpenQL: A Portable Quantum Programming Framework for Quantum Accelerators. https://dl.acm.org/doi/10.1145/3474222
https://openql.readthedocs.io
Other
97 stars 44 forks source link

IR refactoring #418

Closed jvanstraten closed 3 years ago

jvanstraten commented 3 years ago

This PR tracks the introduction of a new tree-gen-based IR structure for everything but the API. Some important new features:

The old IR is completely retained for API compatibility; that is, the API functions will continue to use this structure. The old IR will however be completely converted to the new IR upon program/compiler.compile(). Therefore, all passes will need to be refactored.

TODO:

Not really related to the core of this PR, but related to wrapping up:

jvanstraten commented 3 years ago

@jvansomeren Regarding the verbal comments: