From 9abc48addd41a14da64731c3969e5277a0ec909c Mon Sep 17 00:00:00 2001 From: Ryan Levy Date: Tue, 9 Apr 2024 12:12:05 -0400 Subject: [PATCH] Fix for latest ITensorNetworks version --- examples/2d_laplace_solver.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/2d_laplace_solver.jl b/examples/2d_laplace_solver.jl index 7167d2e..9979904 100644 --- a/examples/2d_laplace_solver.jl +++ b/examples/2d_laplace_solver.jl @@ -11,7 +11,7 @@ using NamedGraphs: random_bfs_tree, undirected_graph using ITensors: ITensors, Index, siteinds, dim, tags, replaceprime!, MPO, MPS, inner -using ITensorNetworks: ITensorNetwork, dmrg, TTN, maxlinkdim +using ITensorNetworks: ITensorNetwork, dmrg, ttn, maxlinkdim using Dictionaries: Dictionary using SplitApplyCombine: group using Random: seed! @@ -35,10 +35,10 @@ bit_map = BitMap(vertex_to_bit_map, vertex_to_dimension_map) @show maxlinkdim(∇) dmrg_kwargs = (nsweeps=25, normalize=true, maxdim=20, cutoff=1e-12, outputlevel=1, nsites=2) -ϕ_fxy = dmrg(∇, TTN(itensornetwork(ψ_fxy)); dmrg_kwargs...) +ϕ_fxy = dmrg(∇, ttn(itensornetwork(ψ_fxy)); dmrg_kwargs...) ϕ_fxy = ITensorNetworkFunction(ITensorNetwork(ϕ_fxy), bit_map) -final_energy = inner(TTN(itensornetwork(ϕ_fxy))', ∇, TTN(itensornetwork(ϕ_fxy))) +final_energy = inner(ttn(itensornetwork(ϕ_fxy))', ∇, ttn(itensornetwork(ϕ_fxy))) #Smallest eigenvalue in this case should be -8 @show final_energy