Class diagrams

For users who would like to contribute more actively to the development of lambeq, this section provides high-level UML class diagrams for the most important sub-packages and components of the toolkit. For completeness, the diagrams contain first-degree associations with external libraries.

Note

Click on a diagram to zoom.

The significance of the colors used for the class/package boxes is explained in the following diagram:

_images/legend.png

lambeq.ansatz

_images/ansatz.png

lambeq.backend

This shows the internals of the classes from grammar and how they are related to each other via attributes and methods.

_images/backend.png

Zooming out a bit, this shows how the classes from grammar, tensor, and quantum interact through inheritance.

_images/backend-inheritance.png

This is similar to the above diagram but with a focus on classes from quantum.

_images/backend-quantum-inheritance.png

lambeq.bobcat

_images/bobcat.png

lambeq.rewrite

_images/rewrite.png

lambeq.text2diagram

_images/text2diagram.png

lambeq.tokeniser

_images/tokeniser.png

lambeq.training

_images/training.png