Skip to content

Commit

Permalink
Delete examples (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman authored Apr 3, 2024
1 parent 2b592c0 commit c7f5e4b
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 638 deletions.
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ julia> using ITensorNetworks: ITensorNetwork, siteinds
julia> using NamedGraphs: named_grid, subgraph

julia> tn = ITensorNetwork(named_grid(4); link_space=2)
ITensorNetwork{Int64} with 4 vertices:
ITensorNetworks.ITensorNetwork{Int64} with 4 vertices:
4-element Vector{Int64}:
1
2
Expand All @@ -52,7 +52,7 @@ and 3 edge(s):
3 => 4

with vertex data:
4-element Dictionary{Int64, Any}
4-element Dictionaries.Dictionary{Int64, Any}
1 │ ((dim=2|id=739|"1,2"),)
2 │ ((dim=2|id=739|"1,2"), (dim=2|id=920|"2,3"))
3 │ ((dim=2|id=920|"2,3"), (dim=2|id=761|"3,4"))
Expand Down Expand Up @@ -90,7 +90,7 @@ and here is a similar example for making a tensor network on a grid (a tensor pr

```julia
julia> tn = ITensorNetwork(named_grid((2, 2)); link_space=2)
ITensorNetwork{Tuple{Int64, Int64}} with 4 vertices:
ITensorNetworks.ITensorNetwork{Tuple{Int64, Int64}} with 4 vertices:
4-element Vector{Tuple{Int64, Int64}}:
(1, 1)
(2, 1)
Expand All @@ -104,7 +104,7 @@ and 4 edge(s):
(1, 2) => (2, 2)

with vertex data:
4-element Dictionary{Tuple{Int64, Int64}, Any}
4-element Dictionaries.Dictionary{Tuple{Int64, Int64}, Any}
(1, 1) │ ((dim=2|id=712|"1×1,2×1"), (dim=2|id=598|"1×1,1×2"))
(2, 1) │ ((dim=2|id=712|"1×1,2×1"), (dim=2|id=457|"2×1,2×2"))
(1, 2) │ ((dim=2|id=598|"1×1,1×2"), (dim=2|id=683|"1×2,2×2"))
Expand All @@ -125,7 +125,7 @@ julia> neighbors(tn, (1, 2))
(2, 2)

julia> tn_1 = subgraph(v -> v[1] == 1, tn)
ITensorNetwork{Tuple{Int64, Int64}} with 2 vertices:
ITensorNetworks.ITensorNetwork{Tuple{Int64, Int64}} with 2 vertices:
2-element Vector{Tuple{Int64, Int64}}:
(1, 1)
(1, 2)
Expand All @@ -134,12 +134,12 @@ and 1 edge(s):
(1, 1) => (1, 2)

with vertex data:
2-element Dictionary{Tuple{Int64, Int64}, Any}
2-element Dictionaries.Dictionary{Tuple{Int64, Int64}, Any}
(1, 1) │ ((dim=2|id=712|"1×1,2×1"), (dim=2|id=598|"1×1,1×2"))
(1, 2) │ ((dim=2|id=598|"1×1,1×2"), (dim=2|id=683|"1×2,2×2"))

julia> tn_2 = subgraph(v -> v[1] == 2, tn)
ITensorNetwork{Tuple{Int64, Int64}} with 2 vertices:
ITensorNetworks.ITensorNetwork{Tuple{Int64, Int64}} with 2 vertices:
2-element Vector{Tuple{Int64, Int64}}:
(2, 1)
(2, 2)
Expand All @@ -148,7 +148,7 @@ and 1 edge(s):
(2, 1) => (2, 2)

with vertex data:
2-element Dictionary{Tuple{Int64, Int64}, Any}
2-element Dictionaries.Dictionary{Tuple{Int64, Int64}, Any}
(2, 1) │ ((dim=2|id=712|"1×1,2×1"), (dim=2|id=457|"2×1,2×2"))
(2, 2) │ ((dim=2|id=457|"2×1,2×2"), (dim=2|id=683|"1×2,2×2"))
```
Expand All @@ -164,7 +164,7 @@ julia> using ITensorNetworks: ⊗, contract, contraction_sequence
julia> using ITensorUnicodePlots: @visualize

julia> s = siteinds("S=1/2", named_grid(3))
IndsNetwork{Int64, Index} with 3 vertices:
ITensorNetworks.IndsNetwork{Int64, ITensors.Index} with 3 vertices:
3-element Vector{Int64}:
1
2
Expand All @@ -175,16 +175,16 @@ and 2 edge(s):
2 => 3

with vertex data:
3-element Dictionary{Int64, Vector{Index}}
1 │ Index[(dim=2|id=830|"S=1/2,Site,n=1")]
2 │ Index[(dim=2|id=369|"S=1/2,Site,n=2")]
3 │ Index[(dim=2|id=558|"S=1/2,Site,n=3")]
3-element Dictionaries.Dictionary{Int64, Vector{ITensors.Index}}
1ITensors.Index[(dim=2|id=830|"S=1/2,Site,n=1")]
2ITensors.Index[(dim=2|id=369|"S=1/2,Site,n=2")]
3ITensors.Index[(dim=2|id=558|"S=1/2,Site,n=3")]

and edge data:
0-element Dictionary{NamedEdge{Int64}, Vector{Index}}
0-element Dictionaries.Dictionary{NamedGraphs.NamedEdge{Int64}, Vector{ITensors.Index}}

julia> tn1 = ITensorNetwork(s; link_space=2)
ITensorNetwork{Int64} with 3 vertices:
ITensorNetworks.ITensorNetwork{Int64} with 3 vertices:
3-element Vector{Int64}:
1
2
Expand All @@ -195,13 +195,13 @@ and 2 edge(s):
2 => 3

with vertex data:
3-element Dictionary{Int64, Any}
3-element Dictionaries.Dictionary{Int64, Any}
1 │ ((dim=2|id=830|"S=1/2,Site,n=1"), (dim=2|id=186|"1,2"))
2 │ ((dim=2|id=369|"S=1/2,Site,n=2"), (dim=2|id=186|"1,2"), (dim=2|id=430|"2,3…
3 │ ((dim=2|id=558|"S=1/2,Site,n=3"), (dim=2|id=430|"2,3"))
julia> tn2 = ITensorNetwork(s; link_space=2)
ITensorNetwork{Int64} with 3 vertices:
ITensorNetworks.ITensorNetwork{Int64} with 3 vertices:
3-element Vector{Int64}:
1
2
Expand All @@ -212,7 +212,7 @@ and 2 edge(s):
2 => 3
with vertex data:
3-element Dictionary{Int64, Any}
3-element Dictionaries.Dictionary{Int64, Any}
1 │ ((dim=2|id=830|"S=1/2,Site,n=1"), (dim=2|id=994|"1,2"))
2 │ ((dim=2|id=369|"S=1/2,Site,n=2"), (dim=2|id=994|"1,2"), (dim=2|id=978|"2,3
3 │ ((dim=2|id=558|"S=1/2,Site,n=3"), (dim=2|id=978|"2,3"))
Expand Down Expand Up @@ -293,8 +293,8 @@ julia> @visualize Z;

julia> contraction_sequence(Z)
2-element Vector{Vector}:
Key{Tuple{Int64, Int64}}[Key((1, 1)), Key((1, 2))]
Any[Key((2, 1)), Any[Key((2, 2)), Key{Tuple{Int64, Int64}}[Key((3, 1)), Key((3, 2))]]]
NamedGraphs.Key{Tuple{Int64, Int64}}[Key((1, 1)), Key((1, 2))]
Any[Key((2, 1)), Any[Key((2, 2)), NamedGraphs.Key{Tuple{Int64, Int64}}[Key((3, 1)), Key((3, 2))]]]

julia>= contract(Z, (1, 1) => (2, 1));

Expand Down
2 changes: 0 additions & 2 deletions examples/Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
DataGraphs = "b5a273c3-7e6c-41f6-98bd-8d7f1525a36a"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
ITensorNetworks = "2919e153-833c-4bdc-8836-1ea460a35fc7"
ITensorUnicodePlots = "73163f41-4a9e-479f-8353-73bf94dbd758"
Expand Down
52 changes: 0 additions & 52 deletions examples/approx_contract/sweep_contractor.jl

This file was deleted.

22 changes: 0 additions & 22 deletions examples/boundary.jl

This file was deleted.

43 changes: 0 additions & 43 deletions examples/contraction_sequence/contraction_sequence.jl

This file was deleted.

17 changes: 0 additions & 17 deletions examples/distances.jl

This file was deleted.

89 changes: 0 additions & 89 deletions examples/dynamics/2d_ising_imag_tebd.jl

This file was deleted.

17 changes: 0 additions & 17 deletions examples/examples.jl

This file was deleted.

Loading

0 comments on commit c7f5e4b

Please sign in to comment.