Skip to content

Commit

Permalink
Condense import
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlevy committed Dec 19, 2023
1 parent f1fd729 commit 5e1872f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions examples/vumps/vumps_hubbard_extended.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using ITensors
using ITensorInfiniteMPS

base_path = joinpath(pkgdir(ITensorInfiniteMPS), "examples", "vumps", "src")
src_files = [
joinpath(
pkgdir(ITensorInfiniteMPS), "examples", "vumps", "src", "vumps_subspace_expansion.jl"
),
joinpath(pkgdir(ITensorInfiniteMPS), "examples", "vumps", "src", "entropy.jl"),
joinpath(base_path, "vumps_subspace_expansion.jl"), joinpath(base_path, "entropy.jl")
]
for f in src_files
include(f)
Expand Down
6 changes: 2 additions & 4 deletions examples/vumps/vumps_ising.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using ITensors
using ITensorInfiniteMPS

base_path = joinpath(pkgdir(ITensorInfiniteMPS), "examples", "vumps", "src")
src_files = [
joinpath(
pkgdir(ITensorInfiniteMPS), "examples", "vumps", "src", "vumps_subspace_expansion.jl"
),
joinpath(pkgdir(ITensorInfiniteMPS), "examples", "vumps", "src", "entropy.jl"),
joinpath(base_path, "vumps_subspace_expansion.jl"), joinpath(base_path, "entropy.jl")
]
for f in src_files
include(f)
Expand Down

0 comments on commit 5e1872f

Please sign in to comment.