Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start using ITensorMPS.jl #83

Merged
merged 5 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ version = "0.1.0"
[deps]
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
Infinities = "e1ba4f0e-776d-440f-acd9-e1d2e9742647"
IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
Expand All @@ -18,11 +19,12 @@ SplitApplyCombine = "03a91e81-4c3e-53e1-a0a4-9c0c8f19dd66"

[compat]
Compat = "3, 4"
HDF5 = "0.15, 0.16"
ITensors = "0.3.48"
HDF5 = "0.15, 0.16, 0.17"
ITensorMPS = "0.1"
ITensors = "0.3.48, 0.4, 0.5, 0.6"
Infinities = "0.1"
IterTools = "1"
KrylovKit = "0.5, 0.6"
KrylovKit = "0.5, 0.6, 0.7"
OffsetArrays = "1"
QuadGK = "2"
Requires = "1"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ julia> using Pkg; Pkg.add(url="https://github.com/mtfishman/ITensorInfiniteMPS.j

This package is a work in progress. Here are some examples of the interface:
```julia
julia> using ITensors, ITensorInfiniteMPS
julia> using ITensors, ITensorMPS, ITensorInfiniteMPS

julia> s = siteinds("S=1/2", 3)
3-element Array{Index{Int64},1}:
Expand Down
2 changes: 1 addition & 1 deletion examples/development/finite_mps_to_infinite_mps.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS

# H = -J Σⱼ XⱼXⱼ₊₁ - h Σⱼ Zⱼ
Expand Down
2 changes: 1 addition & 1 deletion examples/development/orthogonalize_infinitemps.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Random

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS

##############################################################################
Expand Down
2 changes: 1 addition & 1 deletion examples/development/vumps/vumps_from_dmrg.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Random

Expand Down
2 changes: 1 addition & 1 deletion examples/development/vumps/vumps_ising_noncontiguous.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS

##############################################################################
Expand Down
2 changes: 1 addition & 1 deletion examples/development/vumps/vumps_localham.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Random

Expand Down
2 changes: 1 addition & 1 deletion examples/development/vumps/vumps_localham_qns.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Random

Expand Down
2 changes: 1 addition & 1 deletion examples/development/vumps/vumps_mpo.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Random

Expand Down
2 changes: 1 addition & 1 deletion examples/vumps/src/entropy.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS

# calculate -\sum_i rho_i log(rho_i)
Expand Down
2 changes: 1 addition & 1 deletion examples/vumps/src/vumps_subspace_expansion.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS

# Alternate steps of running TDVP and increasing the bond dimension.
Expand Down
2 changes: 1 addition & 1 deletion examples/vumps/transfer_matrix_spectrum.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS

include(
Expand Down
2 changes: 1 addition & 1 deletion examples/vumps/vumps_2d_heisenberg.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ITensorInfiniteMPS
using ITensors
using ITensors, ITensorMPS

include(
joinpath(
Expand Down
2 changes: 1 addition & 1 deletion examples/vumps/vumps_heisenberg.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS

include(
Expand Down
2 changes: 1 addition & 1 deletion examples/vumps/vumps_hubbard_extended.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS

base_path = joinpath(pkgdir(ITensorInfiniteMPS), "examples", "vumps", "src")
Expand Down
2 changes: 1 addition & 1 deletion examples/vumps/vumps_ising.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS

base_path = joinpath(pkgdir(ITensorInfiniteMPS), "examples", "vumps", "src")
Expand Down
2 changes: 1 addition & 1 deletion examples/vumps/vumps_ising_extended.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS

include(
Expand Down
4 changes: 2 additions & 2 deletions src/ITensorInfiniteMPS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module ITensorInfiniteMPS

# For `only`, which was introduced in Julia v1.4
using Compat
using ITensors
using ITensors, ITensorMPS
# For optional ITensorsVisualization dependency.
using Requires
# For using ∞ as lengths, ranges, etc.
Expand Down Expand Up @@ -88,7 +88,7 @@ export Cell,

function __init__()
# This is used for debugging using visualizations
@require ITensorsVisualization = "f2aed53d-2f32-47c3-a7b9-1ee253853786" @eval using ITensorsVisualization
@require ITensorsVisualization = "f2aed53d-2f32-47c3-a7b9-1ee253853786" @eval using ITensors, ITensorMPSVisualization
mtfishman marked this conversation as resolved.
Show resolved Hide resolved
end

end
2 changes: 1 addition & 1 deletion src/ITensors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ ITensors.noncommoninds(is::IndexSet) = is
# itensor.jl
#

using ITensors.NDTensors
using ITensors, ITensorMPS.NDTensors

# Helpful for making sure the ITensor doesn't contract
ITensors.sim(A::ITensor) = ITensors.setinds(A, sim(inds(A)))
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
ITensorInfiniteMPS = "1dc1fb26-a137-4954-ae60-1bd4106e95ad"
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
KrylovKit = "0b1a1467-8014-51b9-945f-bf0ae24f4b77"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
2 changes: 1 addition & 1 deletion test/test_iMPOConversions.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Test

Expand Down
2 changes: 1 addition & 1 deletion test/test_itensormap.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Test
using Random
Expand Down
2 changes: 1 addition & 1 deletion test/test_readwrite.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using ITensorInfiniteMPS.HDF5
using Test
Expand Down
2 changes: 1 addition & 1 deletion test/test_unitcell_qns.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Test
using Random
Expand Down
2 changes: 1 addition & 1 deletion test/test_vumps.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Test
using Random
Expand Down
2 changes: 1 addition & 1 deletion test/test_vumps_extendedising.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Test
using Random
Expand Down
2 changes: 1 addition & 1 deletion test/test_vumpsmpo.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Test
using Random
Expand Down
2 changes: 1 addition & 1 deletion test/test_vumpsmpo_fqhe.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorInfiniteMPS
using Test
using Random
Expand Down
Loading