Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce _contract_deltas #73

Merged
merged 5 commits into from
Mar 1, 2023
Merged

Introduce _contract_deltas #73

merged 5 commits into from
Mar 1, 2023

Conversation

LinjianMa
Copy link
Contributor

"""
Given an input tensor network `tn`, remove redundent delta tensors
in `tn` and change inds accordingly to make the output `tn` represent
the same tensor network but with less delta tensors.
"""
function _contract_deltas(tn::ITensorNetwork)
  ...
end

"""
Given an input `partition`, contract redundent delta tensors in `partition`
without changing the tensor network value. `root` is the root of the
dfs_tree that defines the leaves.
Note: for each vertex `v` of `partition`, the number of non-delta tensors
  in `partition[v]` will not be changed.
Note: only delta tensors of non-leaf vertices will be contracted.
"""
function _contract_deltas(partition::DataGraph; root=1)
 ...
end

src/contract_deltas.jl Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Mar 1, 2023

Codecov Report

Merging #73 (6e8391e) into main (e82baef) will increase coverage by 0.00%.
The diff coverage is 91.26%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main      #73   +/-   ##
=======================================
  Coverage   76.81%   76.82%           
=======================================
  Files          59       60    +1     
  Lines        3080     3115   +35     
=======================================
+ Hits         2366     2393   +27     
- Misses        714      722    +8     
Impacted Files Coverage Δ
src/Graphs/abstractgraph.jl 57.89% <ø> (-2.11%) ⬇️
src/ITensorNetworks.jl 77.77% <ø> (ø)
src/contract_deltas.jl 87.50% <87.50%> (ø)
src/binary_tree_partition.jl 100.00% <100.00%> (+1.02%) ⬆️
src/itensors.jl 82.75% <100.00%> (+2.75%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mtfishman mtfishman merged commit 536faaa into ITensor:main Mar 1, 2023
@LinjianMa LinjianMa deleted the deltas branch July 1, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants