Skip to content

Commit 456c9f9

Browse files
mtfishmanclaude
andcommitted
Add two-site DMRG for tree tensor networks
Adds `dmrg`, a two-site DMRG ground-state solver for trees: the operator is a `TensorNetworkOperator`, the exact projected-Hamiltonian environments live in a `MessageCache` of `NamedDimsArrays` operators, and the driver follows the layered `AlgorithmsInterface` structure used by `beliefpropagation` and `apply_operators`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 469dad6 commit 456c9f9

5 files changed

Lines changed: 905 additions & 3 deletions

File tree

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ITensorNetworksNext"
22
uuid = "302f2e75-49f0-4526-aef7-d8ba550cb06c"
3-
version = "0.7.1"
3+
version = "0.7.2"
44
authors = ["ITensor developers <support@itensor.org> and contributors"]
55

66
[workspace]
@@ -14,6 +14,7 @@ DataGraphs = "b5a273c3-7e6c-41f6-98bd-8d7f1525a36a"
1414
Dictionaries = "85a47980-9c8c-11e8-2b9f-f7ca1fa99fb4"
1515
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
1616
ITensorBase = "4795dd04-0d67-49bb-8f44-b89c448a1dc7"
17+
KrylovKit = "0b1a1467-8014-51b9-945f-bf0ae24f4b77"
1718
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1819
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1920
MatrixAlgebraKit = "6c742aac-3347-4629-af66-fc926824e5e4"
@@ -31,6 +32,7 @@ DataGraphs = "0.4"
3132
Dictionaries = "0.4.5"
3233
Graphs = "1.13.1"
3334
ITensorBase = "0.8"
35+
KrylovKit = "0.10"
3436
LinearAlgebra = "1.10"
3537
MacroTools = "0.5.16"
3638
MatrixAlgebraKit = "0.6"

src/ITensorNetworksNext.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module ITensorNetworksNext
33
if VERSION >= v"1.11.0-DEV.469"
44
eval(
55
Meta.parse(
6-
"public apply_operator, apply_operators, beliefpropagation_normnetwork, identity_norm_message_env, normnetwork, norm_message_env, ones_norm_message_env, rand_norm_message_env, randn_norm_message_env, similar_norm_message_env"
6+
"public apply_operator, apply_operators, beliefpropagation_normnetwork, dmrg, identity_norm_message_env, normnetwork, norm_message_env, ones_norm_message_env, rand_norm_message_env, randn_norm_message_env, similar_norm_message_env, StopWhenEnergyConverged, TensorNetworkOperator"
77
)
88
)
99
end
@@ -21,4 +21,6 @@ include("beliefpropagation/normnetwork.jl")
2121

2222
include("apply/apply_operators.jl")
2323

24+
include("dmrg.jl")
25+
2426
end

0 commit comments

Comments
 (0)