Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: MethodError: Cannot convert an object of type ObservableTree{1} to an object of type Dict #5

Closed
procuteboy opened this issue Jun 17, 2024 · 2 comments

Comments

@procuteboy
Copy link

我在运行示例文件([Hubbard_DMRG])出现如下错误
ERROR: MethodError: Cannot convert an object of type ObservableTree{1} to an object of type Dict
看起来convert函数不能作用于Tree,不清楚什么原因?

@Qiaoyi-Li
Copy link
Owner

我在本地测试最新版本的该示例脚本是正常工作的。注意我在该次版本更新v1.4.0中修改了相关函数的用法,你可以先检查下执行该脚本时环境的FiniteMPS版本号以及对比本地示例脚本与当前主分支示例脚本,看看用法是否一致,来尝试排查。

@procuteboy
Copy link
Author

测试成功,主要时MPSKit与FiniteMPS有所冲突,rm 相关包,重新安装FiniteMPS 升级至1.4.2可以解决该问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants