0.3.2
Added:
- Support for
DisCoPy
>= 1.1.4 (credit: toumix).- replaced
discopy.rigid
withdiscopy.grammar.pregroup
everywhere. - replaced
discopy.biclosed
withdiscopy.grammar.categorial
everywhere. - Use
Diagram.decode
to account for the change in contructor signatureDiagram(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.
- replaced
- Added
CCGType
class for utilisation in thebiclosed_type
attribute ofCCGTree
, allowing conversion to and from a discopy categorial object usingCCGType.discopy
andCCGType.from_discopy
methods. CCGTree
: added reference to the original tree from parsing by introducing ametadata
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.