Commit 1920b44
Remove approximate-contract (density_matrix / ttn_svd) algorithms
Delete the entire src/contract_approx/ module (8 files, ~1200 lines),
its two test files (test/test_binary_tree_partition.jl,
test/test_contract_deltas.jl), and the dead ITensorNetworksGraphsFlowsExt
extension that only served it. Drop the GraphsFlows weakdep + extension
entry from the root Project.toml; GraphsFlows stays as a direct test-time
dep for the graph mincut test in test/test_itensornetwork.jl.
Also drop the `contract(tn; alg = "density_matrix" | "ttn_svd")` dispatch
from src/contract.jl, which was a thin forwarder to contract_approx. The
remaining `alg = "exact"` dispatch is unaffected.
A few imports that were previously made available to other parts of the
package as a side effect of contract_approx/*.jl's `using` clauses now
need to be imported explicitly by the files that actually use them:
- Graphs: rem_vertex! in src/treetensornetworks/opsum_to_ttn/opsum_to_ttn.jl
- ITensors: inds in src/abstractitensornetwork.jl
- NamedGraphs.GraphsExtensions: disjoint_union in src/formnetworks/{linear,bilinear}formnetwork.jl
Bump to 0.17.0 (breaking, pre-1.0 minor bump) and update pinned
ITensorNetworks compat in test/, docs/, and examples/ Project.toml.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6912226 commit 1920b44
22 files changed
Lines changed: 10 additions & 1328 deletions
File tree
- docs
- examples
- ext/ITensorNetworksGraphsFlowsExt
- src
- contract_approx
- formnetworks
- treetensornetworks/opsum_to_ttn
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
| |||
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
Lines changed: 0 additions & 19 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 16 | | |
25 | 17 | | |
26 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 23 | | |
33 | 24 | | |
34 | 25 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments