Skip to content

Commit

Permalink
rm unnecassary function
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekGardas committed Mar 8, 2021
1 parent 15ed8b6 commit 8805b26
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 36 deletions.
22 changes: 1 addition & 21 deletions src/PEPS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mutable struct PepsNetwork <: AbstractGibbsNetwork
fg::MetaDiGraph,
β::Number,
origin::Symbol=:NW,
args_override::Dict{String, Number}=Dict{String, Number}()
args_override::Dict=Dict()
)

pn = new((m, n))
Expand Down Expand Up @@ -64,26 +64,6 @@ generate_boundary(pn::PepsNetwork,
σ::Int,
) = generate_boundary(pn.network_graph, pn.map[m], pn.map[n], σ)

# function PEPSRow(::Type{T}, peps::PepsNetwork, i::Int) where {T <: Number}
# ψ = PEPSRow(T, peps.j_max)

# # generate tensors from projectors
# for j ∈ 1:length(ψ)
# ψ[j] = generate_tensor(peps, (i, j))
# end

# # include energy
# for j ∈ 1:peps.j_max
# A = ψ[j]
# h = generate_tensor(peps, (i, j-1), (i, j))
# v = generate_tensor(peps, (i-1, j), (i, j))
# @tensor B[l, u, r, d, σ] := h[l, l̃] * v[u, ũ] * A[l̃, ũ, r, d, σ]
# ψ[j] = B
# end
# ψ
# end
# PEPSRow(peps::PepsNetwork, i::Int) = PEPSRow(Float64, peps, i)

function peps_tensor(::Type{T}, peps::PepsNetwork, i::Int, j::Int) where {T <: Number}
# generate tensors from projectors
A = generate_tensor(peps, (i, j))
Expand Down
5 changes: 0 additions & 5 deletions src/ising.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ const Instance = Union{String, Dict}
const SimpleEdge = LightGraphs.SimpleGraphs.SimpleEdge
const EdgeIter = Union{LightGraphs.SimpleGraphs.SimpleEdgeIter, Base.Iterators.Filter, Array}

# struct Spectrum
# energies::Array{<:Number}
# states::Array{Vector{<:Number}}
# end

mutable struct Spectrum
energies::Vector{Float64}
states::Vector{Vector{Int}}
Expand Down
19 changes: 9 additions & 10 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,16 @@ my_tests = []
include("test_helpers.jl")
push!(my_tests,

# "base.jl",
# "utils.jl",
# "contractions.jl",
# "compressions.jl",
# "identities.jl",
# "ising.jl",
# "MPS_search.jl",
# "factor.jl",
# "PEPS.jl",
# "base.jl",
# "utils.jl",
# "contractions.jl",
# "compressions.jl",
# "identities.jl",
# "ising.jl",
# "MPS_search.jl",
# "factor.jl",
# "PEPS.jl",
# "contract.jl", # This will not pass with normalization

"search_3.jl",
"search.jl"
)
Expand Down

0 comments on commit 8805b26

Please sign in to comment.