Skip to content

Commit c7f5e4b

Browse files
authored
Delete examples (#153)
1 parent 2b592c0 commit c7f5e4b

File tree

19 files changed

+24
-638
lines changed

19 files changed

+24
-638
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ julia> using ITensorNetworks: ITensorNetwork, siteinds
3939
julia> using NamedGraphs: named_grid, subgraph
4040

4141
julia> tn = ITensorNetwork(named_grid(4); link_space=2)
42-
ITensorNetwork{Int64} with 4 vertices:
42+
ITensorNetworks.ITensorNetwork{Int64} with 4 vertices:
4343
4-element Vector{Int64}:
4444
1
4545
2
@@ -52,7 +52,7 @@ and 3 edge(s):
5252
3 => 4
5353

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

9191
```julia
9292
julia> tn = ITensorNetwork(named_grid((2, 2)); link_space=2)
93-
ITensorNetwork{Tuple{Int64, Int64}} with 4 vertices:
93+
ITensorNetworks.ITensorNetwork{Tuple{Int64, Int64}} with 4 vertices:
9494
4-element Vector{Tuple{Int64, Int64}}:
9595
(1, 1)
9696
(2, 1)
@@ -104,7 +104,7 @@ and 4 edge(s):
104104
(1, 2) => (2, 2)
105105

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

127127
julia> tn_1 = subgraph(v -> v[1] == 1, tn)
128-
ITensorNetwork{Tuple{Int64, Int64}} with 2 vertices:
128+
ITensorNetworks.ITensorNetwork{Tuple{Int64, Int64}} with 2 vertices:
129129
2-element Vector{Tuple{Int64, Int64}}:
130130
(1, 1)
131131
(1, 2)
@@ -134,12 +134,12 @@ and 1 edge(s):
134134
(1, 1) => (1, 2)
135135

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

141141
julia> tn_2 = subgraph(v -> v[1] == 2, tn)
142-
ITensorNetwork{Tuple{Int64, Int64}} with 2 vertices:
142+
ITensorNetworks.ITensorNetwork{Tuple{Int64, Int64}} with 2 vertices:
143143
2-element Vector{Tuple{Int64, Int64}}:
144144
(2, 1)
145145
(2, 2)
@@ -148,7 +148,7 @@ and 1 edge(s):
148148
(2, 1) => (2, 2)
149149

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

166166
julia> s = siteinds("S=1/2", named_grid(3))
167-
IndsNetwork{Int64, Index} with 3 vertices:
167+
ITensorNetworks.IndsNetwork{Int64, ITensors.Index} with 3 vertices:
168168
3-element Vector{Int64}:
169169
1
170170
2
@@ -175,16 +175,16 @@ and 2 edge(s):
175175
2 => 3
176176

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

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

186186
julia> tn1 = ITensorNetwork(s; link_space=2)
187-
ITensorNetwork{Int64} with 3 vertices:
187+
ITensorNetworks.ITensorNetwork{Int64} with 3 vertices:
188188
3-element Vector{Int64}:
189189
1
190190
2
@@ -195,13 +195,13 @@ and 2 edge(s):
195195
2 => 3
196196

197197
with vertex data:
198-
3-element Dictionary{Int64, Any}
198+
3-element Dictionaries.Dictionary{Int64, Any}
199199
1 │ ((dim=2|id=830|"S=1/2,Site,n=1"), (dim=2|id=186|"1,2"))
200200
2 │ ((dim=2|id=369|"S=1/2,Site,n=2"), (dim=2|id=186|"1,2"), (dim=2|id=430|"2,3…
201201
3 │ ((dim=2|id=558|"S=1/2,Site,n=3"), (dim=2|id=430|"2,3"))
202202
203203
julia> tn2 = ITensorNetwork(s; link_space=2)
204-
ITensorNetwork{Int64} with 3 vertices:
204+
ITensorNetworks.ITensorNetwork{Int64} with 3 vertices:
205205
3-element Vector{Int64}:
206206
1
207207
2
@@ -212,7 +212,7 @@ and 2 edge(s):
212212
2 => 3
213213
214214
with vertex data:
215-
3-element Dictionary{Int64, Any}
215+
3-element Dictionaries.Dictionary{Int64, Any}
216216
1 │ ((dim=2|id=830|"S=1/2,Site,n=1"), (dim=2|id=994|"1,2"))
217217
2 │ ((dim=2|id=369|"S=1/2,Site,n=2"), (dim=2|id=994|"1,2"), (dim=2|id=978|"2,3
218218
3 │ ((dim=2|id=558|"S=1/2,Site,n=3"), (dim=2|id=978|"2,3"))
@@ -293,8 +293,8 @@ julia> @visualize Z;
293293

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

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

examples/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
[deps]
2-
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
3-
DataGraphs = "b5a273c3-7e6c-41f6-98bd-8d7f1525a36a"
42
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
53
ITensorNetworks = "2919e153-833c-4bdc-8836-1ea460a35fc7"
64
ITensorUnicodePlots = "73163f41-4a9e-479f-8353-73bf94dbd758"

examples/approx_contract/sweep_contractor.jl

Lines changed: 0 additions & 52 deletions
This file was deleted.

examples/boundary.jl

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/contraction_sequence/contraction_sequence.jl

Lines changed: 0 additions & 43 deletions
This file was deleted.

examples/distances.jl

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/dynamics/2d_ising_imag_tebd.jl

Lines changed: 0 additions & 89 deletions
This file was deleted.

examples/examples.jl

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)