jcmgray / quimb

A python library for quantum information and many-body calculations including tensor networks.
http://quimb.readthedocs.io
Other
455 stars 107 forks source link

Installation error #111

Closed ghost closed 2 years ago

ghost commented 2 years ago

I have followed the installation instructions, however encountered an error after this import

>>> from quimb.tensor.optimize import TNOptimizer
ModuleNotFoundError: No module named 'quimb.tensor.optimize

For reference this is on an M1 Mac, with these modules

>>> pip list
autoray    0.2.5
colorama   0.4.4
cytoolz    0.11.2
llvmlite   0.38.0
mpi4py     3.1.3
numba      0.55.1
numpy      1.21.5
opt-einsum 3.3.0
pip        22.0.3
psutil     5.9.0
quimb      1.3.0
scipy      1.8.0
setuptools 60.9.2
toolz      0.11.2
tqdm       4.62.3
wheel      0.37.1
>>> conda list
autoray                   0.2.5              pyhd8ed1ab_0    conda-forge
bzip2                     1.0.8                h0d85af4_4    conda-forge
ca-certificates           2021.10.8            h033912b_0    conda-forge
colorama                  0.4.4              pyh9f0ad1d_0    conda-forge
cytoolz                   0.11.2          py310he24745e_1    conda-forge
libblas                   3.9.0           13_osx64_openblas    conda-forge
libcblas                  3.9.0           13_osx64_openblas    conda-forge
libcxx                    12.0.1               habf9029_1    conda-forge
libffi                    3.4.2                h0d85af4_5    conda-forge
libgfortran               5.0.0           9_3_0_h6c81a4c_23    conda-forge
libgfortran5              9.3.0               h6c81a4c_23    conda-forge
liblapack                 3.9.0           13_osx64_openblas    conda-forge
libllvm11                 11.1.0               hd011deb_3    conda-forge
libopenblas               0.3.18          openmp_h3351f45_0    conda-forge
libzlib                   1.2.11            h9173be1_1013    conda-forge
llvm-openmp               13.0.1               hda6cdc1_0    conda-forge
llvmlite                  0.38.0          py310h003a20c_0    conda-forge
mpi                       1.0                       mpich    conda-forge
mpi4py                    3.1.3           py310hd348148_0    conda-forge
mpich                     3.4.3              hd33e60e_100    conda-forge
ncurses                   6.3                  he49afe7_0    conda-forge
numba                     0.55.1          py310h3ca88a5_0    conda-forge
numpy                     1.21.5          py310ha69e199_0    conda-forge
openssl                   3.0.0                h0d85af4_2    conda-forge
opt_einsum                3.3.0              pyhd8ed1ab_1    conda-forge
pip                       22.0.3             pyhd8ed1ab_0    conda-forge
psutil                    5.9.0           py310he24745e_0    conda-forge
python                    3.10.2          hea1dfa3_3_cpython    conda-forge
python_abi                3.10                    2_cp310    conda-forge
quimb                     1.3.0                    pypi_0    pypi
readline                  8.1                  h05e3726_0    conda-forge
scipy                     1.8.0           py310h47774c9_1    conda-forge
setuptools                60.9.2          py310h2ec42d9_0    conda-forge
sqlite                    3.37.0               h23a322b_0    conda-forge
tk                        8.6.12               h5dbffcc_0    conda-forge
toolz                     0.11.2             pyhd8ed1ab_0    conda-forge
tqdm                      4.62.3             pyhd8ed1ab_0    conda-forge
tzdata                    2021e                he74cb21_0    conda-forge
wheel                     0.37.1             pyhd8ed1ab_0    conda-forge
xz                        5.2.5                haf1e3a3_1    conda-forge
zlib                      1.2.11            h9173be1_1013    conda-forge

Any suggestions for what is causing this error?

jcmgray commented 2 years ago

This is just because the stable released version of quimb does not have the optimize functionality. Instead you can install with:

pip install --no-deps -U git+git://github.com/jcmgray/quimb.git@develop
ghost commented 2 years ago

Problem solved, thanks for the quick response!