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
101 stars 45 forks source link

How to represent options to common functionality #489

Open jvansomeren opened 1 year ago

jvansomeren commented 1 year ago

Scheduler and mapper both use ddg. Ddg is an example of common functionality. Passes can be given options, common functionality not. Ddg has options to support commutativity etc. How do we represent those? One way is to make them pass options of the passes using the common functionality and passing those options upon construction in decoded form to the common functionality.