CQCL / lambeq

A high-level Python library for Quantum Natural Language Processing
https://docs.quantinuum.com/lambeq/
Apache License 2.0
455 stars 111 forks source link

Add frames in lambeq #142

Closed dimkart closed 3 weeks ago

dimkart commented 6 months ago

Description

The purpose of this task is to add a Frame class to lambeq.backend ^1, representing a higher-order box that contains diagrams inside it:

image

A core implementation must include a lambeq.backend.grammar.Frame class that can be used in a grammar diagram. It should also have the following features:

Notes

References

[^2]: Vertical frames, horizontal frames, extension

toumix commented 6 months ago

Here's the PR where the picture was taken: https://github.com/discopy/discopy/pull/280 It's close to completion but the reviewing will take a bit of time.