0.4.1
Added:
- Support for Python 3.12.
- A new
Sim4Ansatzbased on the paper by Sim et al. (arXiv:1905.10876). - A new argument in
Trainer.fitfor specifying anearly_stopping_criterionother than validation loss. - A new argument
collapse_noun_phrasesin methods ofCCGParserandCCGTreeclasses (for example, seeCCGParser.sentence2diagram) that allows the user to maintain noun phrases in the derivation or collapse them into nouns as desired. - Raised meaningful exception when users try to convert to/from DisCoPy 1.1.0.
Changed:
- An internal refactoring of module
backend.drawingin view of planned new features. - Updated random number generation in
TketModelby using the recommendednumpy.random.default_rndmethod.
Fixed:
- Handling of possible empty
Bras andKets during conversion from DisCoPy. - Fixed a bug in JIT compilation of mixed circuit evaluations.