qulacs / qulacs-rtd

Qulacs documentation for readthedocs. Configured to support automatically generate C++/Python API, and internationalization.
MIT License
3 stars 3 forks source link

Some codes are not compatible with openfermion >=1.0 #32

Open KKeita27 opened 2 years ago

KKeita27 commented 2 years ago

The following lines in https://docs.qulacs.org/en/latest/apply/6.2_vqe.html fail with latest openfermion,

from openfermion.transforms import get_sparse_operator
from openfermion.hamiltonians import MolecularData

which are already fixed in the Japanese version:

from openfermion.linalg import get_sparse_operator #エラーが出る場合は openfermion を version 1.0.0 以上にしてみてください
from openfermion.chem import MolecularData