Skip to content

Commit

Permalink
Fix test and docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Jul 10, 2021
1 parent bed5d8d commit f5dcaf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DocMeta.setdocmeta!(

makedocs(;
modules=[ITensorNetworkAD],
authors=["Matthew Fishman <[email protected]>", "Linjian Ma <[email protected]>"],
authors="Matthew Fishman <[email protected]>, Linjian Ma <[email protected]>",
repo="https://github.com/itensor/ITensorNetworkAD.jl/blob/{commit}{path}#{line}",
sitename="ITensorNetworkAD.jl",
format=Documenter.HTML(;
Expand Down
10 changes: 1 addition & 9 deletions src/ITensorNetworks/ising_classical_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ macro Model_str(s)
return :(Model{$(Expr(:quote, Symbol(s)))})
end

#mpo_itensor(m::String, args...; kwargs...) =
# mpo_itensor(Model(m), args...; kwargs...)

function local_boltzmann_weight(m::String, args...; kwargs...)
return local_boltzmann_weight(Model(m), args...; kwargs...)
end
Expand Down Expand Up @@ -73,7 +70,7 @@ function local_boltzmann_weight(
end
s̃ₕ, s̃ₕ′, s̃ᵥ, s̃ᵥ′ = sim.((sₕ, sₕ′, sᵥ, sᵥ′))
= T * δ(sₕ, s̃ₕ) * δ(sₕ′, s̃ₕ′) * δ(sᵥ, s̃ᵥ) * δ(sᵥ′, s̃ᵥ′)
X = sqrt_bond_matrix(; β, J)
X = sqrt_bond_matrix(; β=β, J=J)
Xₕ = itensor(vec(X), s̃ₕ, sₕ)
Xₕ′ = itensor(vec(X), s̃ₕ′, sₕ′)
Xᵥ = itensor(vec(X), s̃ᵥ, sᵥ)
Expand All @@ -89,12 +86,7 @@ function mpo_itensor(
return itensor(mpo_array(m; kwargs...), sₕ, sₕ′, sᵥ, sᵥ′)
end

## function ising_mpo(sₕ::Index, sᵥ::Index, args...; kwargs...)
## return ising_mpo(sₕ => sₕ', sᵥ => sᵥ', args...; kwargs...)
## end

critical_point(::Model"ising") = 0.5 * log(2 + 1)
#const βc = critical_point(Model("ising"))

function free_energy(::Model"ising"; β::Real, J::Real=1.0)
k = β * J
Expand Down

0 comments on commit f5dcaf8

Please sign in to comment.