Skip to content

Pass a norm network's ket and bra layers as separate belief-propagation operands - #182

Merged
mtfishman merged 2 commits into
mainfrom
mf/bp-doubled-vertex-order
Sep 9, 2026
Merged

mtfishman merged 2 commits into
mainfrom
mf/bp-doubled-vertex-order

Conversation

@mtfishman

Copy link
Copy Markdown
Member

Summary

Belief-propagation message updates on a NormNetwork handed the doubled vertex ket * conj(bra) to contract_network as one operand, hiding the physical index the layers share and forcing the doubled tensor every sweep, χ^(2 * degree) not χ^(degree + 1). Passing the layers separately lets the order interleave the messages.

…on operands

Belief-propagation message updates on a `NormNetwork` handed the doubled vertex `ket * conj(bra)` to `contract_network` as one operand, hiding the physical index the layers share and forcing the doubled tensor every sweep, χ^(2 * degree) not χ^(degree + 1). Passing the layers separately lets the order interleave the messages.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.23%. Comparing base (e0b1e67) to head (fa6fd57).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #182      +/-   ##
==========================================
+ Coverage   80.17%   80.23%   +0.05%     
==========================================
  Files          13       13              
  Lines         681      683       +2     
==========================================
+ Hits          546      548       +2     
  Misses        135      135              
Flag Coverage Δ
docs 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@mtfishman
mtfishman merged commit 0674bc1 into main Sep 9, 2026
12 of 18 checks passed
@mtfishman
mtfishman deleted the mf/bp-doubled-vertex-order branch September 9, 2026 20:57
mtfishman added a commit that referenced this pull request Sep 9, 2026
…#183)

## Summary

Backports #182 to
the 0.10 release line, so belief-propagation message updates on a
`NormNetwork` stop forming the doubled `ket * conj(bra)` tensor before
absorbing a message.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

1 participant