Documentation#

Qrisp’s documentation is built with Sphinx and hosted at qrisp.eu. Contributions that add or modify public functionality should include corresponding documentation updates.

Building the docs locally#

All documentation source files live under documentation/source/. To build and preview them:

# From the repository root
cd documentation

# One-shot build — output lands in documentation/build/html/
make html

Open documentation/build/html/index.html in your browser to inspect the result. Always verify that pages render correctly before submitting a pull request — formatting that looks fine in raw reStructuredText may not render well in Sphinx.

Docstrings#

Public functions and classes should have docstrings that use section headers separated by dashes (Parameters, Returns, Examples, etc.), following the NumPy docstring style. This is the pattern already used in the existing codebase.

Checklist for documentation contributions:

  • All docstring Examples blocks execute correctly.

  • New pages are registered in the appropriate index.rst toctree.

  • Cross-references (e.g., :ref:`QuantumFloat`) resolve without warnings.

  • The build produces zero new Sphinx warnings.

Useful references#