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

Documentation fragments and comments in OpenQL source could be improved #479

Open jvansomeren opened 1 year ago

jvansomeren commented 1 year ago

In general, we'd like header files of classes to contain only comment that is functional (implementation independent), and implementation files of classes explain the various implementation options/choices. Note that header file comment is also used by doxygen. Documentation fragments are used to compose the readthedocs documentation and should thus be functional; this can be improved, partially by simplifying the interfaces of course (not this issue), and otherwise by being more clear on the various cases, models, constraints, etc. An example is the meaning of options; perhaps some should be taken out of the readthedocs fragments because they are too much implementation related.

For this issue, first the documentation fragments, then the header file comment and then the implementation file comments are revised.