Skip to content

qdk_chemistry.utils.wavefunction file different in repo and documentation #400

@Rohit-2002-28

Description

@Rohit-2002-28

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
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions