You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BREAKING] Drop IndsNetwork/graph ITensorNetwork ctors and ttn/mps generic ctors (#356)
## Summary
Continues the post-#355 cleanup. Drops the rest of the higher-level
`ITensorNetwork` and `ttn` / `mps` constructor surface that wrapped the
old
`IndsNetwork`-based code paths, plus the `ttn(::OpSum, ::IndsNetwork)`
and
`ttn(::ITensor, ::IndsNetwork)` dispatches (canonical name is now
`TreeTensorNetwork`; `mpo` continues to dispatch through to it).
Surviving
construction surface: `ITensorNetwork(tensors)`,
`ITensorNetwork(tensors, graph)`, and
`TreeTensorNetwork(::OpSum / ::ITensor / ::ITensorNetwork, ...)`.
Adds `factorize_edge!` and `Graphs.add_edge!` on
`AbstractITensorNetwork`.
Internal callers that built `ITensorNetwork(::IndsNetwork)` placeholders
now
build `ITensorNetwork(tensors, graph)` directly. Folds in two bug fixes
(missing `trivial_space` import; `_siteinds` returning `Tuple` instead
of
`Vector{Index}`).
`test/utils.jl` substantially simplified (~261 → ~75 effective lines):
surviving helpers are `random_tensornetwork`, `productstate`, and
`ModelHamiltonians`; `Distributions` dep dropped. Docs updated to the
canonical construction. `Project.toml` bumped 0.21 → 0.22.0-DEV
(breaking;
accumulator pattern — a strip-suffix PR will release 0.22.0 once v0.22
cleanups are batched).
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments