Skip to content

Commit

Permalink
Removed lattices.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Feb 13, 2024
1 parent c2cc66a commit 58b1b64
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 26 deletions.
3 changes: 2 additions & 1 deletion examples/mps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ using ITensors
using ITensorNetworks
using ITensorUnicodePlots
using Random
using NamedGraphs

Random.seed!(1234)

g = chain_lattice_graph(4)
g = named_path_graph(4)

s = siteinds("S=1/2", g)

Expand Down
1 change: 0 additions & 1 deletion src/ITensorNetworks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ include("observers.jl")
include("visualize.jl")
include("graphs.jl")
include("itensors.jl")
include("lattices.jl")
include("abstractindsnetwork.jl")
include("indextags.jl")
include("indsnetwork.jl")
Expand Down
4 changes: 0 additions & 4 deletions src/exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ export path_graph_structure, binary_tree_structure
# ITensorNetworks: approx_itensornetwork.jl
export approx_itensornetwork

# ITensorNetworks: lattices.jl
# TODO: DELETE
export hypercubic_lattice_graph, square_lattice_graph, chain_lattice_graph

# ITensorNetworks: partition.jl
export partition, partition_vertices, subgraphs, subgraph_vertices

Expand Down
19 changes: 0 additions & 19 deletions src/lattices.jl

This file was deleted.

2 changes: 1 addition & 1 deletion src/treetensornetworks/solvers/deprecated/projmpo_mps2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ contract(P::ProjMPO_MPS2, v::ITensor) = contract(P.PH, v)

proj_mps(P::ProjMPO_MPS2) = [proj_mps(m) for m in P.Ms]

underlying_graph(P::ProjMPO_MPS2) = chain_lattice_graph(length(P.PH.H)) # tree patch
underlying_graph(P::ProjMPO_MPS2) = named_path_graph(length(P.PH.H)) # tree patch

0 comments on commit 58b1b64

Please sign in to comment.