CQCL / qnlp_lorenz_etal_2021_resources

Code and resources for the Lorenz et al. (2021) QNLP paper
GNU General Public License v3.0
25 stars 12 forks source link

mc_task: ImportError: cannot import name 'Ty' from 'discopy' #3

Closed dtchang closed 1 year ago

dtchang commented 1 year ago

The code is not compatible with the current version of DisCoPy (1.0.0), which has major package changes (e.g,, multiple Ty).

Please update asap. Thanks.

AnnaNPearson commented 1 year ago

These notebooks are compatible with the versions of the packages listed under code requirements. Due to these packages being frequently updated we do not guarantee compatibility with newer versions of them. Please see the QNLP library lambeq with accompanying documentation and examples, which is more up to date, and may be more appropriate for your needs.

Documentation: https://cqcl.github.io/lambeq/index.html
Paper: https://arxiv.org/pdf/2110.04236.pdf

dtchang commented 1 year ago

No problem. I tried lambeq 0.2.8 which has discopy 0.5.0. The code is compatible.