Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

Block sparse backend - #471

Merged
mganahl merged 301 commits into
google:experimental_blocksparsefrom
mganahl:block_sparse_backend
Feb 18, 2020
Merged

mganahl merged 301 commits into
google:experimental_blocksparsefrom
mganahl:block_sparse_backend

Conversation

@mganahl

@mganahl mganahl commented Feb 18, 2020

Copy link
Copy Markdown
Contributor

No description provided.

Function avoids explicit full fusion of all legs, and instead only keeps track of the unique charges and their degeneracies upon fusion
re-intorduced BlockSparseTensor.dense_shape
new method for fusing charges and degeneracies (faster for very rectangular matrices)
fuse_charges added
forgot to fix fusing order of charges and degeneracies
mganahl and others added 27 commits February 10, 2020 16:28
…ogle#427) (google#467)

* BaseNode / Edge class text input protection added (google#423)

BaseNode class - Add protection to name, axis_names
*Protected in 3 place
*Initialize stage - __init__
*Function use setting - set_name / add_axis_names
*Property - Add @Property to name to protect direct adding node.name = 123

Edge class - Add protection to name
*Protected in 3 place
*Initialize stage - __init__
*Function use setting - set_name
*Property

* BaseNode / Edge class text input protection code revise (google#423)

*if type(name) != str
*if not isinstance(name, str)
*change using type to isinstance to follow pylint

* Add eigenvector=True to torch.symeig due to pytorch=1.4.0 release (google#427)

Due to pytorch 1.4.0 version release the torch.symeig now return 0-element eigenvector tensor when eigenvectors=False(default)
To fix this add the eigenvector=True parameter to where torch.symeig is used
*1. pytorch_backend.py
    - pytorch_backend.eigsh_lanczos
*2. pytorch_backend_test.py
    - test_eigsh_lanczos_1
    - test_eigsh_lanczos_2
    - test_eigsh_lanczos_reorthogonalize

* Update requirements_travis.txt (google#427)

remove pytorch version requirement (==1.3.1) and replace it to (>=1.1)

Co-authored-by: Chase Roberts <chaseriley@google.com>
@mganahl
mganahl merged commit ed450c1 into google:experimental_blocksparse Feb 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants