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

[ITensors] Excise ITensors.ITensorMPS #1551

Merged
merged 22 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
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
1 change: 0 additions & 1 deletion .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
package:
- {user: ITensor, repo: ITensorGaussianMPS.jl}
- {user: ITensor, repo: ITensorMPS.jl}
- {user: ITensor, repo: ITensorTDVP.jl}
- {user: ITensor, repo: ITensorUnicodePlots.jl}
- {user: ITensor, repo: ITensorVisualizationBase.jl}

Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/test_itensormps_ubuntu.yml

This file was deleted.

1 change: 1 addition & 0 deletions NDTensors/test/ITensors/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
NDTensors = "23ae76d9-e61a-49c4-8f12-3f1a16adf9cf"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
6 changes: 3 additions & 3 deletions NDTensors/test/ITensors/TestITensorDMRG/dmrg.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using ITensors: MPO, OpSum, dmrg, random_mps, siteinds
using ITensorMPS: MPO, OpSum, dmrg, random_mps, siteinds
using Random: Random
using Test: @test
include("../../NDTensorsTestUtils/NDTensorsTestUtils.jl")
using .NDTensorsTestUtils: default_rtol
# TODO: Include file with `reference_energies`.

function test_dmrg(
elt, N::Integer; dev::Function, conserve_qns, rtol_scale=true, outputlevel=0
elt, N::Integer; dev::Function, conserve_qns, rtol_scale=true, outputlevel=0, broken=false
)
sites = siteinds("S=1/2", N; conserve_qns)

Expand All @@ -31,5 +31,5 @@ function test_dmrg(

energy, psi = dmrg(H, psi0; nsweeps, cutoff, maxdim, noise, outputlevel)

@test energy ≈ reference_energies[N] rtol = rtol_scale * default_rtol(elt)
@test energy ≈ reference_energies[N] rtol = rtol_scale * default_rtol(elt) broken = broken
end
9 changes: 2 additions & 7 deletions NDTensors/test/ITensors/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@ using SafeTestsets: @safetestset
if !is_supported_eltype(dev, elt)
continue
end
if TestITensorDMRG.is_broken(dev, elt, Val(conserve_qns))
# TODO: Switch to `@test ... broken=true`, introduced
# in Julia 1.7.
@test_broken TestITensorDMRG.test_dmrg(elt, N; dev, conserve_qns)
else
TestITensorDMRG.test_dmrg(elt, N; dev, conserve_qns, outputlevel=0)
end
broken = TestITensorDMRG.is_broken(dev, elt, Val(conserve_qns))
TestITensorDMRG.test_dmrg(elt, N; dev, conserve_qns, outputlevel=0, broken)
end
using ITensors.ITensorsNamedDimsArraysExt: to_nameddimsarray
## Without this line this test was throwing an error of ``NDTensors` not defined`
Expand Down
5 changes: 3 additions & 2 deletions NDTensors/test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Dictionaries = "85a47980-9c8c-11e8-2b9f-f7ca1fa99fb4"
EllipsisNotation = "da5c29d0-fa7d-589e-88eb-ea29b0a81949"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand All @@ -23,12 +24,12 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
cuTENSOR = "2.0"
Metal = "1.1.0"
cuTENSOR = "2.0"

[extras]
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
cuTENSOR = "011b41b2-24ef-40a8-b3eb-fa098493e9e1"
Metal = "dde4c033-4e86-420c-a63e-0dd931031962"
TBLIS = "48530278-0828-4a49-9772-0f3830dfa1e9"
cuTENSOR = "011b41b2-24ef-40a8-b3eb-fa098493e9e1"
16 changes: 1 addition & 15 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensors"
uuid = "9136182c-28ba-11e9-034c-db9fb085ebd5"
authors = ["Matthew Fishman <[email protected]>", "Miles Stoudenmire <[email protected]>"]
version = "0.6.22"
version = "0.7.0"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand All @@ -12,11 +12,8 @@ Dictionaries = "85a47980-9c8c-11e8-2b9f-f7ca1fa99fb4"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
IsApprox = "28f27b66-4bd8-47e7-9110-e2746eb8bed7"
KrylovKit = "0b1a1467-8014-51b9-945f-bf0ae24f4b77"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
LinearMaps = "7a12625a-238d-50fd-b39a-03d52299707e"
NDTensors = "23ae76d9-e61a-49c4-8f12-3f1a16adf9cf"
PackageExtensionCompat = "65ce6f38-6b18-4e1d-a461-8949797d7930"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand All @@ -31,15 +28,11 @@ Zeros = "bd1ec220-6eb4-527a-9b49-e79c3db6233b"

[weakdeps]
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
Observers = "338f10d5-c7f1-4033-a7d1-f9dec39bcaa0"
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"
VectorInterface = "409d34a3-91d5-4945-b6ec-7529ddf182d8"
ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"

[extensions]
ITensorsHDF5Ext = "HDF5"
ITensorsObserversExt = "Observers"
ITensorsPackageCompilerExt = "PackageCompiler"
ITensorsVectorInterfaceExt = "VectorInterface"
ITensorsZygoteRulesExt = "ZygoteRules"

Expand All @@ -53,13 +46,8 @@ DocStringExtensions = "0.9.3"
Functors = "0.2, 0.3, 0.4"
HDF5 = "0.14, 0.15, 0.16, 0.17"
IsApprox = "0.1, 1, 2"
KrylovKit = "0.4.2, 0.5, 0.6, 0.7, 0.8"
LinearAlgebra = "1.6"
LinearMaps = "3"
NDTensors = "0.3.34"
Observers = "0.2"
PackageCompiler = "1, 2"
PackageExtensionCompat = "1"
Pkg = "1.6"
Printf = "1.6"
Random = "1.6"
Expand All @@ -78,7 +66,5 @@ julia = "1.10"
[extras]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
Observers = "338f10d5-c7f1-4033-a7d1-f9dec39bcaa0"
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"
VectorInterface = "409d34a3-91d5-4945-b6ec-7529ddf182d8"
ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Strided = "5e0ebb24-38b0-5f93-81fe-25c709ecae67"

Expand Down
8 changes: 7 additions & 1 deletion docs/settings.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
using Documenter
using ITensors
using ITensorMPS

# Allows using ITensorMPS.jl docstrings in ITensors.jl documentation:
# https://github.com/JuliaDocs/Documenter.jl/issues/1734
DocMeta.setdocmeta!(ITensors, :DocTestSetup, :(using ITensors); recursive=true)
DocMeta.setdocmeta!(ITensorMPS, :DocTestSetup, :(using ITensorMPS); recursive=true)

sitename = "ITensors.jl"

settings = Dict(
:modules => [ITensors],
# Allows using ITensorMPS.jl docstrings in ITensors.jl documentation:
# https://github.com/JuliaDocs/Documenter.jl/issues/1734
:modules => [ITensors, ITensorMPS],
:pages => [
"Introduction" => "index.md",
"Getting Started with ITensor" => [
Expand Down
Loading
Loading