TensorNetwork icon indicating copy to clipboard operation
TensorNetwork copied to clipboard

SU(2) Exact Diagonalization

Open qsukhi opened this issue 4 years ago • 7 comments

Added a function to compute the low energy eigenstates of a local, SU(2)-symmetric Hamiltonian, in a way that exploits the SU(2) symmetry. Also added some generic SU(2) functionality e.g. functions to compute Clebsch-Gordan coefficients, Fusion Rules, Fusing two indices etc.

qsukhi avatar Jan 12 '21 05:01 qsukhi

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

google-cla[bot] avatar Jan 12 '21 05:01 google-cla[bot]

@googlebot I signed it!

qsukhi avatar Jan 12 '21 05:01 qsukhi

thanks @qsukhi I'll take a look!

mganahl avatar Jan 12 '21 14:01 mganahl

Hi @qsukhi, I'm working through the code. It will take me a bit of time since it is a lot of code. In the meantime, can you change indenting to two spaces instead of four? I wonder why the linter didn't catch this. Also, I noticed that there is a binary file in this PR, is this intentional?

mganahl avatar Jan 14 '21 12:01 mganahl

Thanks, @mganahl. -I've reduced the indent to 2 spaces. -The binary file is a table of factors that come from the Clebsch-Gordan part of SU(2)-symmetric tensor contractions. It is not necessary, as the function Su2ExactDiagonalization() can build the factor tables if the user specifies so (as illustrated in Su2ExactDiagonalization/main.py).

qsukhi avatar Jan 19 '21 04:01 qsukhi

Codecov Report

Merging #898 (e1be4b0) into master (523e7a8) will decrease coverage by 0.04%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #898      +/-   ##
==========================================
- Coverage   98.12%   98.08%   -0.05%     
==========================================
  Files         129      129              
  Lines       22790    22257     -533     
==========================================
- Hits        22362    21830     -532     
+ Misses        428      427       -1     
Impacted Files Coverage Δ
...ornetwork/matrixproductstates/infinite_mps_test.py 84.78% <0.00%> (-1.50%) :arrow_down:
...ckends/tensorflow/tensorflow_tensornetwork_test.py 59.75% <0.00%> (-1.17%) :arrow_down:
tensornetwork/linalg/tests/initialization_test.py 84.61% <0.00%> (-0.65%) :arrow_down:
tensornetwork/backends/decorators_test.py 92.64% <0.00%> (-0.51%) :arrow_down:
...ensornetwork/tests/tensornetwork_symmetric_test.py 92.70% <0.00%> (-0.37%) :arrow_down:
tensornetwork/backends/decorators.py 96.77% <0.00%> (-0.20%) :arrow_down:
tensornetwork/linalg/tests/test_linalg.py 96.31% <0.00%> (-0.20%) :arrow_down:
tensornetwork/tests/tensor_test.py 98.51% <0.00%> (-0.15%) :arrow_down:
examples/simple_mera/simple_mera.py 95.49% <0.00%> (-0.12%) :arrow_down:
...tractors/opt_einsum_paths/path_calculation_test.py 95.74% <0.00%> (-0.09%) :arrow_down:
... and 44 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 523e7a8...e1be4b0. Read the comment docs.

codecov-io avatar Jan 27 '21 11:01 codecov-io

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.12%. Comparing base (523e7a8) to head (e1be4b0). Report is 13 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #898   +/-   ##
=======================================
  Coverage   98.12%   98.12%           
=======================================
  Files         129      129           
  Lines       22790    22790           
=======================================
  Hits        22362    22362           
  Misses        428      428           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Oct 17 '24 20:10 codecov-commenter