-
Notifications
You must be signed in to change notification settings - Fork 2
Refactor TensorNetwork type; add NormNetwork struct.
#119
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
Open
jack-dunham
wants to merge
112
commits into
main
Choose a base branch
from
jd/tensornetwork-refactor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
112 commits
Select commit
Hold shift + click to select a range
b4ae4d7
Working BP Commit
JoeyT1994 d77d063
BP Code
JoeyT1994 b80e36e
Express BP in terms of `SweepIterator` interface
jack-dunham fe44b80
Add method for `setmessages!` that allows messages from one cache to …
jack-dunham 3ce0898
Network is now passed to `forest_cover_edge_sequence` directly.
jack-dunham f6e4fd0
test file formatting
jack-dunham 63840a9
Add `DataGraphsPartitionedGraphsExt` glue for `TensorNetwork` type
jack-dunham ba22ab5
Make abstract tensor network interface more generic.
jack-dunham 49b0870
BP Caching overhauls
jack-dunham db46c04
Remove dead deps
jack-dunham 400e373
Fix merge
jack-dunham b9aafe8
Fix type inference in TensorNetwork construction
jack-dunham 4090e61
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] be0750e
Remove `ITensorBase` dep
jack-dunham b971b89
`forest_cover_edge_sequence` now constructs a temporary `NamedGraph` …
jack-dunham 9ebf031
[LazyNamedDimsArrays] Fix `parenttype` method
jack-dunham 16fe303
BP Cache now uses new `DataGraphs`interface
jack-dunham 24a4335
Adjust `default_message` to take a `message` type as its first argument
jack-dunham c43884e
Remove unnecessary code and fix ambiguities in `AbstractTensorNetwork`
jack-dunham dd6f645
`TensorNetwork` type now uses new DataGraphs interface
jack-dunham 7bb579c
Sweeping algorithms based on AlgorithmsInterface.jl (#30)
mtfishman 032447a
Upgrade to NamedDimsArrays.jl v0.11 (#38)
mtfishman b256d79
[LazyNamedDimsArrays] New `symnameddims` method that pulls out indice…
jack-dunham b2da9d8
The function `region_scalar` should now return a scalar, rather than …
jack-dunham 8506e26
Fix double counting in `edge_scalars` function
jack-dunham 938180a
Minor code formatting
jack-dunham 4461967
Expressed belief propagation in terms of AlgorithmsInterface
jack-dunham d68860a
Fixes to TensorNetwork construction from tensor list
jack-dunham 2f5c783
Minor simplifications to `contract_network` interface.
jack-dunham 9a45a5b
Merge branch 'main' into bp
jack-dunham 4eec9b6
Upgrade DataGraphs and NamedGraphs dependencies
jack-dunham 202724c
[AlgorithmsInterfaceExtensions] Allowing mapping over a generic itera…
jack-dunham 69542e3
Upgrade serial BP to use own `<:Algorithm` structs.
jack-dunham 9925069
Simplify BP cache to only store factors
jack-dunham 292f2fa
Upgrade to DataGraphs v0.3.1 and NamedGraphs v0.10
jack-dunham 9d937aa
Fix compat
jack-dunham 5432fe2
Fix broken merge
jack-dunham c916c84
Bug fix; upgrade tests
jack-dunham 4a511a1
Add 2D TN test
jack-dunham 5b97af3
Formatting
jack-dunham fef588d
Merge branch 'main' into bp
jack-dunham 62dae14
Merge branch 'bp' of https://github.com/jack-dunham/ITensorNetworksNe…
jack-dunham 951cee6
Simplify BP code
jack-dunham 1f1920c
Add spin ice test
jack-dunham 5f3be98
Version Bump
jack-dunham 487683a
Use `abs2` in message diff function.
jack-dunham aa24243
Add method for setting intitial messages; improve spin ice tests.
jack-dunham 9248686
Remove redundant `default_message_diff_function` function.
jack-dunham 9d7abea
Upgrade to DataGraphs and NamedGraphs to 0.4 and 0.11
jack-dunham 66b58c0
Formatting
jack-dunham 1cb4dad
Upgrade to simplified `similar_graph`
jack-dunham 4b2f8c7
Remove edge arg in `similar_graph`.
jack-dunham 3f6c112
Inline message computation into `solve!`; use type instead of alg str…
jack-dunham bd6a007
Add in `PartitionedGraphs` interface methods for `TensorNetwork` and …
jack-dunham 52d8713
Test BP with differing precisions; remove `atol` test criteria.
jack-dunham bfc4bf4
Use `map` instead of comprehension when returning messages.
jack-dunham e6ad8de
Fix `nested_algorithm` methods on iterables.
jack-dunham 3919499
Merge branch 'bp' of https://github.com/jack-dunham/ITensorNetworksNe…
jack-dunham 395a3cc
Cleanup `AbstractBeliefPropagationCache` interface.
jack-dunham e530e5f
Remove `Graphs.connected_components` method for `TensorNetwork`
jack-dunham 6a6fb90
Remove unecessary `symnameddims` method.
jack-dunham 27691fb
Remove confusing code comment.
jack-dunham 86e7021
Remove `beliefpropagation_sweep` in favour of constructor call.
jack-dunham 867ec89
Fix message type initialization failing when only factors are provided.
jack-dunham 8a67164
Formatting.
jack-dunham 9aba7b5
Remove `edge_data_type` method for `AbstractTensorNetwork`
jack-dunham ecde4fa
Add some tests for `TensorNetwork` type.
jack-dunham 01ec54e
Bug fixes; more tests
jack-dunham 17260f2
Using `Inf` instead of `NaN` for delta initialization in `StopWhenCon…
jack-dunham 1f889d5
Add some basic tests for `PartitionedGraphs` interactions with `Tenso…
jack-dunham 35e6f14
Add tests via Claude.
jack-dunham 2872016
Refine and redistribute generated tests
jack-dunham 0dd5169
Further BP test improvements
jack-dunham d75c191
Fix incomplete `sitenames` and `siteaxes` definitions.
jack-dunham 78d9088
Remove `default_message` and other fixes.
jack-dunham 04be71a
Fix test imports
jack-dunham e31be99
Formatting.
jack-dunham a42bd86
Fix and test tensor network graph manipulation functions.
jack-dunham 324b5f4
Simplify `factors` and `messages` methods on `AbstractGraph`
jack-dunham 45af84e
Refactor `BeliefPropagationCache` -> `MessageCache`, remove abstract …
jack-dunham b20868b
Allow a custom stopping criteria input into `beliefpropagation` using…
jack-dunham 9eba120
Hard code edge type in `MessageCache`.
jack-dunham e8c2fd0
Merge branch 'bp' of https://github.com/jack-dunham/ITensorNetworksNe…
jack-dunham e2ecb45
Remove `MessageCache` undef initializer.
jack-dunham 4dae0fa
Rename argument names to be more consistent.
jack-dunham 6ad8205
Simplify `MessageCache` interface.
jack-dunham d754cbf
Merge branch 'main' into tensornetwork
jack-dunham db44abb
`TensorNetwork` type refactor with inlined `link_indices`.
jack-dunham 57614ff
Use `Vertex/EdgeDataGraph` as supertypes
jack-dunham b4dd74f
Merge branch 'main' into tensornetwork
jack-dunham 93451d5
Update to DataGraphs v0.5.0
jack-dunham 20dcb05
Add `NormNetwork` to lazily represent the norm of a tensor network
jack-dunham 7c51b20
Upgrade to latest `NamedDimsArrays`
jack-dunham 9acb6e7
Merge branch 'main' into jd/tensornetwork-refactor
jack-dunham 50b3dc2
Add interface to `NormNetwork` for providing ones own index name map.
jack-dunham bb7b8dc
Rename `lazy_norm` to `normnetwork`.
jack-dunham 8df78b4
Rename `index_locations` -> `dimname_vertices`.
jack-dunham 7095002
Add `normnetworkview.jl`, begin updating tests.
jack-dunham 0e5fa06
Upgrade `apply` code to use new data stuctures.
jack-dunham 37a4c81
Merge branch 'main' into jd/tensornetwork-refactor
jack-dunham 435796c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0edd3bc
Rename `TensorNetwork` and co to `ITensorNetwork`.
jack-dunham bc4605b
Restore some `public` symbols
jack-dunham b6861a9
Rename local `ind` to `name` in `rem_vertex` function.
jack-dunham 9a3d769
Rename `has_indname` to `has_dimname`.
jack-dunham 9b4984d
Replace `indsites` with `dimnamevertices`, now takes name as argument.
jack-dunham 7e0bc1e
Upgrade to new `ITensorBase` and `TensorAlgebra` versions.
jack-dunham 7759e2c
Formatting
jack-dunham 8313bf7
Merge branch 'main' into jd/tensornetwork-refactor
jack-dunham 8d5a166
Version bump (breaking) to 0.8.0
jack-dunham 7dddefa
Add tests for `normnetwork.jl` and `normnetworkview.jl`; fix some bugs.
jack-dunham 9c1a8ca
Formatting.
jack-dunham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.