Skip to content

0.3.2

Compare
Choose a tag to compare
@Thommy257 Thommy257 released this 23 Jun 08:16
· 7 commits to main since this release

Added:

  • Support for DisCoPy >= 1.1.4 (credit: toumix).
    • replaced discopy.rigid with discopy.grammar.pregroup everywhere.
    • replaced discopy.biclosed with discopy.grammar.categorial everywhere.
    • Use Diagram.decode to account for the change in contructor signature Diagram(inside, dom, cod).
    • updated attribute names that were previously hidden, e.g. ._data becomes .data.
    • replaced diagrammatic conjugate with transpose.
    • swapped left and right currying.
    • dropped support for legacy DisCoPy.
  • Added CCGType class for utilisation in the biclosed_type attribute of CCGTree, allowing conversion to and from a discopy categorial object using CCGType.discopy and CCGType.from_discopy methods.
  • CCGTree: added reference to the original tree from parsing by introducing a metadata field.

Changed:

  • Internalised DisCoPy quantum ansätze in lambeq.
  • IQPAnsatz now ends with a layer of Hadamard gates in the multi-qubit case and the post-selection basis is set to be the computational basis (Pauli Z).

Fixed:

  • Fixed a bottleneck during the initialisation of the PennyLaneModel caused by the inefficient substitution of Sympy symbols in the circuits.
  • Escape special characters in box labels for symbol creation.
  • Documentation: fixed broken links to DisCoPy documentation.
  • Documentation: enabled sphinxcontrib.jquery extension for Read the Docs theme.
  • Fixed disentangling RealAnsatz in extend-lambeq tutorial notebook.
  • Fixed model loading in PennyLane notebooks.
  • Fixed typo SPSAOptimizer (credit: Gopal-Dahale)

Removed:

  • Removed support for Python 3.8.