From 6159b75e2f2e80b08e55aaa350d09f24c5f92a35 Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Fri, 10 May 2024 15:55:35 -0400 Subject: [PATCH] Start using ITensorMPS (#15) --- Project.toml | 4 ++++ examples/electronic-structure.jl | 1 + examples/fermi-hubbard.jl | 1 + examples/haldane-shastry.jl | 1 + examples/intro.jl | 1 + src/ITensorMPOConstruction.jl | 1 + test/runtests.jl | 1 + 7 files changed, 10 insertions(+) diff --git a/Project.toml b/Project.toml index 662bdbf..6f60365 100644 --- a/Project.toml +++ b/Project.toml @@ -4,6 +4,7 @@ authors = ["Ben Corbett and contributors"] version = "0.1.0" [deps] +ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2" ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Memoize = "c03570c3-d221-55d1-a50c-7939bbd78826" @@ -11,8 +12,11 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f" [compat] +ITensorMPS = "0.1" ITensors = "0.3, 0.4, 0.5, 0.6" +LinearAlgebra = "1.10" Memoize = "0.4" +SparseArrays = "1.10" TimerOutputs = "0.5" julia = "1.10" diff --git a/examples/electronic-structure.jl b/examples/electronic-structure.jl index 435d68c..e1667ba 100644 --- a/examples/electronic-structure.jl +++ b/examples/electronic-structure.jl @@ -1,4 +1,5 @@ using ITensorMPOConstruction +using ITensorMPS using ITensors function electronic_structure( diff --git a/examples/fermi-hubbard.jl b/examples/fermi-hubbard.jl index 9f12940..89c6808 100644 --- a/examples/fermi-hubbard.jl +++ b/examples/fermi-hubbard.jl @@ -1,4 +1,5 @@ using ITensorMPOConstruction +using ITensorMPS using ITensors function Fermi_Hubbard_real_space( diff --git a/examples/haldane-shastry.jl b/examples/haldane-shastry.jl index abd7b97..257b44f 100644 --- a/examples/haldane-shastry.jl +++ b/examples/haldane-shastry.jl @@ -1,4 +1,5 @@ using ITensorMPOConstruction +using ITensorMPS using ITensors function halden_shastry_mpo_from_OpSum(N::Int, J::Real; useITensorsAlg::Bool=false)::MPO diff --git a/examples/intro.jl b/examples/intro.jl index 1a76326..f8c2d58 100644 --- a/examples/intro.jl +++ b/examples/intro.jl @@ -1,4 +1,5 @@ using ITensorMPOConstruction +using ITensorMPS using ITensors function foo(N::Int; useITensorsAlg::Bool=false)::MPO diff --git a/src/ITensorMPOConstruction.jl b/src/ITensorMPOConstruction.jl index 762582a..1ab0cf7 100644 --- a/src/ITensorMPOConstruction.jl +++ b/src/ITensorMPOConstruction.jl @@ -3,6 +3,7 @@ module ITensorMPOConstruction ##################################### # External packages # +using ITensorMPS using ITensors using LinearAlgebra using SparseArrays diff --git a/test/runtests.jl b/test/runtests.jl index 528abd4..77689e9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,4 +1,5 @@ using ITensorMPOConstruction +using ITensorMPS using ITensors using Test