From 9112cb4949200c35b188d4a37f15d0edde27b6a8 Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Mon, 25 Mar 2024 21:49:29 -0400 Subject: [PATCH] Update for `ITensors.jl` `ITensorMPS` submodule (#21) --- src/ITensorParallel.jl | 13 +++++++------ test/Project.toml | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ITensorParallel.jl b/src/ITensorParallel.jl index 574bdd3..bad9968 100644 --- a/src/ITensorParallel.jl +++ b/src/ITensorParallel.jl @@ -8,10 +8,12 @@ using MPI using ITensors using ITensors.NDTensors -using ITensors: AbstractSum, Algorithm, @Algorithm_str +using ITensors: Algorithm, @Algorithm_str +using ITensors.ITensorMPS: AbstractSum import Base: eltype, length, size -import ITensors: +import ITensors: product +import ITensors.ITensorMPS: disk, linkind, lproj, @@ -19,15 +21,14 @@ import ITensors: nsite, orthogonalize!, position!, - product, replaceind!, replacebond!, rproj, set_terms, terms -include(joinpath("partition", "partition.jl")) -include(joinpath("partition", "partition_sum_split.jl")) -include(joinpath("partition", "partition_chain_split.jl")) +include("partition/partition.jl") +include("partition/partition_sum_split.jl") +include("partition/partition_chain_split.jl") include("force_gc.jl") include("foldssum.jl") include("distributedsum.jl") diff --git a/test/Project.toml b/test/Project.toml index 4c67d29..f645986 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -2,6 +2,7 @@ ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63" Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" +ITensorParallel = "0fccfcd2-f061-4985-9740-339d3f86bfce" ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5" MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"