The source for C++ examples are located in /example and Python examples in /python/example. You can add yours in the same way you would contribute code, please see the PR workflow section.

Especially when adding new functionality, consider adding an example to demonstrate its use.


Tutorials are examples with an associated documentation under /doc/tutorial explaining the goal of the example and guiding the reader through the code. When you add an example, consider writing a tutorial page.