Skip to content

0.3.3

Compare
Choose a tag to compare
@ianyfan ianyfan released this 28 Jul 16:30
· 27 commits to main since this release

This update features contributions from participants in unitaryHACK 2023:

  • Two new optimisers:
  • A new rewrite rule for handling unknown words. (credit: WingCode)

Many thanks to all who participated.

This update also contains the following changes:

Added:

  • DiagramRewriter is a new class that rewrites diagrams by looking at the diagram as a whole rather than by using rewrite rules on individual boxes. This includes an example UnifyCodomainRewriter which adds an extra box to the end of diagrams to change the output to a specified type. (credit: A.C.E07)
  • Added an early stopping mechanism to Trainer using the parameter early_stopping_interval.

Fixed:

  • In PennyLaneModel, SymPy symbols are now substituted during the forward pass so that gradients are back-propagated to the original parameters.
  • A pickling error that prevented CCG trees produced by BobcatParser from being unpickled has been fixed.