Skip to content

Drop mpo(::OpSum) constructor and orphan path_indsnetwork helper#368

Merged
mtfishman merged 1 commit into
mainfrom
mf/drop-mpo
May 12, 2026
Merged

Drop mpo(::OpSum) constructor and orphan path_indsnetwork helper#368
mtfishman merged 1 commit into
mainfrom
mf/drop-mpo

Conversation

@mtfishman
Copy link
Copy Markdown
Member

Summary

  • Drops the two mpo(::OpSum, ...) overloads in src/treetensornetworks/opsum_to_ttn/opsum_to_ttn.jl. Both were trivial wrappers forwarding to TreeTensorNetwork(os, path_indsnetwork(external_inds)) and TreeTensorNetwork(os, s). Zero callers in src/, test/, Tennis.jl, ITensorNetworksNext.jl, or TensorNetworkQuantumSimulator.jl. Continuation of #356's direction of dropping short-name dispatches in favor of explicit TreeTensorNetwork(::OpSum, ...) constructors.
  • Drops path_indsnetwork (two overloads in src/indsnetwork.jl) — only consumer was the deleted mpo(::OpSum, ::Vector) form, so it's orphaned.
  • Removes the matching doc blocks from docs/src/experimental_methods.md.

No version bump — substantive change accumulates against the existing 0.22.0-DEV prerelease.

The two `mpo` overloads in `src/treetensornetworks/opsum_to_ttn/opsum_to_ttn.jl`
were trivial wrappers forwarding to `TreeTensorNetwork(os, ...)`. Zero
callers in src/, test/, Tennis.jl, ITensorNetworksNext.jl, or
TensorNetworkQuantumSimulator.jl. Continuation of #356's direction of
dropping short-name dispatches in favor of the explicit
`TreeTensorNetwork(::OpSum, ...)` constructor.

`path_indsnetwork` was the only consumer of the
`mpo(::OpSum, ::Vector)` form (built a path-graph `IndsNetwork` from a
vector of site Indices); with `mpo` gone it has zero callers and is
also removed.

Docs trimmed: removed the matching `mpo` and `path_indsnetwork` entries
from `docs/src/experimental_methods.md`.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.77%. Comparing base (efcc7fa) to head (fe34767).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #368      +/-   ##
==========================================
+ Coverage   76.39%   76.77%   +0.37%     
==========================================
  Files          57       57              
  Lines        2644     2631      -13     
==========================================
  Hits         2020     2020              
+ Misses        624      611      -13     
Flag Coverage Δ
docs 52.43% <ø> (+0.26%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.

@mtfishman mtfishman enabled auto-merge (squash) May 12, 2026 22:12
@mtfishman mtfishman merged commit d02f10e into main May 12, 2026
18 checks passed
@mtfishman mtfishman deleted the mf/drop-mpo branch May 12, 2026 22:29
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