ITADN

qdk_chemistry.utils.wavefunction file different in repo and documentation

#400OpenRohit-2002-28 创建于 2026-03-11
documentationtriage
R
Rohit-2002-28commented
the qdk_chemistry.utils.wavefunction file in the documentation has a get_top_determinants function that is not present in the repo. Instead the example in the repo shows using it as a method of a wavefunction: in the repo: top_configurations = wfn_cas.get_top_determinants(max_determinants=NUM_DETERMINANTS) in the documentation: top_configurations = get_top_determinants(wfn_cas, num_determinants=...) results in the following error: Traceback (most recent call last): File "/workspaces/qdk-chemistry/examples/my_end_to_end.py", line 5, in <module> from qdk_chemistry.utils.wavefunction import get_top_determinants ImportError: cannot import name 'get_top_determinants' from 'qdk_chemistry.utils.wavefunction' (/home/vscode/qdk_chemistry_venv/lib/python3.12/site-packages/qdk_chemistry/utils/wavefunction.py)
0 条评论