Skip to content

Commit

Permalink
Start using ITensorMPS.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed May 10, 2024
1 parent 770d181 commit ecf76b8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Folds = "41a02a25-b8f0-4f67-bc48-60067656b558"
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"

[compat]
Accessors = "0.1.26"
Compat = "4.8"
Folds = "0.2.8"
ITensors = "0.3.58"
ITensorMPS = "0.1"
ITensors = "0.3.58, 0.4, 0.5, 0.6"
MPI = "0.20"
julia = "1.6"

Expand Down
3 changes: 2 additions & 1 deletion examples/01_parallel_mpo_sum_2d_hubbard_conserve_momentum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ rmprocs(setdiff(procs(), 1))
addprocs(2)
@show nprocs()

@everywhere using ITensors
@everywhere using ITensorMPS
@everywhere using ITensorParallel
@everywhere using ITensors
using Random

include(joinpath(pkgdir(ITensors), "examples", "src", "electronk.jl"))
Expand Down
3 changes: 2 additions & 1 deletion examples/02_mpi_mpo_sum_2d_hubbard_conserve_momentum.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using MPI
MPI.Init()
using ITensors
using ITensorMPS
using ITensorParallel
using ITensors
using Random

include(joinpath(pkgdir(ITensors), "examples", "src", "electronk.jl"))
Expand Down
3 changes: 2 additions & 1 deletion examples/03_partition_2d_heisenberg.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using ITensors
using ITensorMPS
using ITensorParallel
using ITensors

function heisenberg_2d(nx, ny)
lattice = square_lattice(nx, ny; yperiodic=false)
Expand Down
7 changes: 4 additions & 3 deletions src/ITensorParallel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ using Accessors
using Compat
using Distributed
using Folds
using MPI
using ITensorMPS
using ITensors
using ITensors.NDTensors
using MPI

using ITensors: Algorithm, @Algorithm_str
using ITensors.ITensorMPS: AbstractSum
using ITensorMPS: AbstractSum

import Base: eltype, length, size
import ITensors: product
import ITensors.ITensorMPS:
import ITensorMPS:
disk,
linkind,
lproj,
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
ITensorParallel = "0fccfcd2-f061-4985-9740-339d3f86bfce"
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
Expand Down

0 comments on commit ecf76b8

Please sign in to comment.