Skip to content

Commit

Permalink
move all contraction to cotengra
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Oct 13, 2023
1 parent 4f2f8c1 commit 4021b38
Show file tree
Hide file tree
Showing 20 changed files with 12,669 additions and 717 deletions.
3 changes: 1 addition & 2 deletions ci/requirements/py-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ channels:
- conda-forge
dependencies:
- autoray>=0.6.6
- cotengra
- coverage
- cytoolz
- diskcache
- joblib
- matplotlib
- networkx
- numba>=0.56
- numpy
- opt_einsum>=3.2
- psutil
- pytest
- pytest-cov
Expand Down
3 changes: 1 addition & 2 deletions ci/requirements/py-jax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ channels:
- conda-forge
dependencies:
- autoray>=0.6.6
- cotengra
- coverage
- cytoolz
- diskcache
- joblib
- matplotlib
- networkx
- numba>=0.56
- numpy
- opt_einsum>=3.2
- psutil
- pytest
- pytest-cov
Expand Down
3 changes: 1 addition & 2 deletions ci/requirements/py-slepc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ channels:
- defaults
dependencies:
- autoray>=0.6.6
- cotengra
- coverage
- cytoolz
- diskcache
- joblib
- matplotlib
- mpi4py>=3.1
- networkx
- numba>=0.56
- numpy
- openmpi
- opt_einsum>=3.2
- petsc=*=*complex*
- petsc4py
- psutil
Expand Down
3 changes: 1 addition & 2 deletions ci/requirements/py-tensorflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ channels:
- conda-forge
dependencies:
- autoray>=0.6.6
- cotengra
- coverage
- cytoolz
- diskcache
- joblib
- matplotlib
- networkx
- numba>=0.56
- numpy
- opt_einsum>=3.2
- psutil
- pytest
- pytest-cov
Expand Down
3 changes: 1 addition & 2 deletions ci/requirements/py-torch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ channels:
- conda-forge
dependencies:
- autoray>=0.6.6
- cotengra
- coverage
- cpuonly
- cytoolz
- diskcache
- joblib
- matplotlib
- networkx
- numba>=0.56
- numpy
- opt_einsum>=3.2
- psutil
- pytest
- pytest-cov
Expand Down
1,181 changes: 1,150 additions & 31 deletions docs/examples/ex_tensorflow_optimize_pbc_mps.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ For ease and performance (i.e. mkl compiled libraries), `conda <https://conda.io

In addition, the tensor network library, :mod:`quimb.tensor`, requires:

* `opt_einsum <https://github.com/dgasmith/opt_einsum>`_
* `cotengra <https://github.com/jcmgray/cotengra>`_
* `autoray <https://github.com/jcmgray/autoray>`_

``opt_einsum`` efficiently optimizes tensor contraction expressions. It can be installed with ``pip`` or from `conda-forge <https://conda-forge.org>`_ and is a required dependency since various bits of the core ``quimb`` module now make use tensor-network functionality behind the scenes.
``cotengra`` efficiently optimizes tensor contraction expressions. It can be installed with ``pip`` or from `conda-forge <https://conda-forge.org>`_ and is a required dependency since various bits of the core ``quimb`` module now make use tensor-network functionality behind the scenes.
``autoray`` allows backend agnostic numeric code for various tensor network operations so that many libraries other than ``numpy`` can be used. It can be installed via ``pip`` from `pypi <https://pypi.org/project/autoray/>`_ or via ``conda`` `from conda-forge <https://anaconda.org/conda-forge/autoray>`_.


Expand Down
11,187 changes: 11,124 additions & 63 deletions docs/tensor-basics.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 4021b38

Please sign in to comment.