-
Notifications
You must be signed in to change notification settings - Fork 13
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
Belief propagation cache #139
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #139 +/- ##
==========================================
+ Coverage 73.59% 73.61% +0.01%
==========================================
Files 70 71 +1
Lines 4117 4146 +29
==========================================
+ Hits 3030 3052 +22
- Misses 1087 1094 +7 ☔ View full report in Codecov by Sentry. |
@JoeyT1994 over all I think this is a big improvement, I like basing the BP code around the interface Then we can define I've suggested a number of stylistic changes. One broad comment is that I think it would be good to change |
@mtfishman I am thinking about how best to improve the logic of this code based on your comments. I think a helper constructor Then you could have the constructor Then you could have What do you think? I know that |
Thanks, definitely a nice improvement. Looking forward to seeing this in action in the |
This PR combines the
partitionedITensorNetwork
andmessage_tensors
being passed around and used in belief propagation into onebpc::BeliefPropgationCache
containing both. Relevant functionality is added forbpc
such as getting message tensors, getting environments, updating message tensors (via belief propagation) and updating the tensors in thepartitionedITensorNetwork
.Thus
src/beliefpropgation/beliefpropagation.jl
has essentially moved tosrc/caches/beliefpropagationcache.jl
test/test_beliefpropagation.jl
has been refactored to reflect the new interface.