Skip to content

Commit f9c7012

Browse files
authored
Start using ITensorMPS.jl (#172)
* Start using ITensorMPS.jl * Bump to v0.11.5
1 parent 411786e commit f9c7012

21 files changed

+42
-28
lines changed

Project.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ITensorNetworks"
22
uuid = "2919e153-833c-4bdc-8836-1ea460a35fc7"
33
authors = ["Matthew Fishman <[email protected]>, Joseph Tindall <[email protected]> and contributors"]
4-
version = "0.11.4"
4+
version = "0.11.5"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
@@ -13,6 +13,7 @@ Dictionaries = "85a47980-9c8c-11e8-2b9f-f7ca1fa99fb4"
1313
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
1414
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
1515
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
16+
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
1617
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
1718
IsApprox = "28f27b66-4bd8-47e7-9110-e2746eb8bed7"
1819
IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
@@ -36,14 +37,14 @@ TupleTools = "9d95972d-f1c8-5527-a6e0-b4b365fa01f6"
3637
[weakdeps]
3738
EinExprs = "b1794770-133b-4de1-afb4-526377e9f4c5"
3839
GraphsFlows = "06909019-6f44-4949-96fc-b9d9aaa02889"
39-
Observers = "338f10d5-c7f1-4033-a7d1-f9dec39bcaa0"
4040
OMEinsumContractionOrders = "6f22d1fd-8eed-4bb7-9776-e7d684900715"
41+
Observers = "338f10d5-c7f1-4033-a7d1-f9dec39bcaa0"
4142

4243
[extensions]
4344
ITensorNetworksEinExprsExt = "EinExprs"
4445
ITensorNetworksGraphsFlowsExt = "GraphsFlows"
45-
ITensorNetworksObserversExt = "Observers"
4646
ITensorNetworksOMEinsumContractionOrdersExt = "OMEinsumContractionOrders"
47+
ITensorNetworksObserversExt = "Observers"
4748

4849
[compat]
4950
AbstractTrees = "0.4.4"
@@ -57,14 +58,15 @@ DocStringExtensions = "0.9"
5758
EinExprs = "0.6.4"
5859
Graphs = "1.8"
5960
GraphsFlows = "0.1.1"
60-
ITensors = "0.4, 0.5"
61+
ITensorMPS = "0.1"
62+
ITensors = "0.4, 0.5, 0.6"
6163
IsApprox = "0.1"
6264
IterTools = "1.4.0"
6365
KrylovKit = "0.6, 0.7"
64-
NamedGraphs = "0.6.0"
6566
NDTensors = "0.3"
66-
Observers = "0.2.4"
67+
NamedGraphs = "0.6.0"
6768
OMEinsumContractionOrders = "0.8.3"
69+
Observers = "0.2.4"
6870
PackageExtensionCompat = "1"
6971
SerializedElementArrays = "0.1"
7072
SimpleTraits = "0.9"
@@ -80,8 +82,8 @@ julia = "1.10"
8082
[extras]
8183
EinExprs = "b1794770-133b-4de1-afb4-526377e9f4c5"
8284
GraphsFlows = "06909019-6f44-4949-96fc-b9d9aaa02889"
83-
Observers = "338f10d5-c7f1-4033-a7d1-f9dec39bcaa0"
8485
OMEinsumContractionOrders = "6f22d1fd-8eed-4bb7-9776-e7d684900715"
86+
Observers = "338f10d5-c7f1-4033-a7d1-f9dec39bcaa0"
8587
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
8688

8789
[targets]

src/abstractitensornetwork.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ using ITensors:
3636
settags,
3737
sim,
3838
swaptags
39-
using ITensors.ITensorMPS: ITensorMPS, add, linkdim, linkinds, siteinds
39+
using ITensorMPS: ITensorMPS, add, linkdim, linkinds, siteinds
4040
using .ITensorsExtensions: ITensorsExtensions, indtype, promote_indtype
4141
using LinearAlgebra: LinearAlgebra, factorize
4242
using NamedGraphs: NamedGraphs, NamedGraph, not_implemented

src/apply.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using ITensors:
2323
unioninds,
2424
uniqueinds
2525
using ITensors.ContractionSequenceOptimization: optimal_contraction_sequence
26-
using ITensors.ITensorMPS: siteinds
26+
using ITensorMPS: siteinds
2727
using KrylovKit: linsolve
2828
using LinearAlgebra: eigen, norm, svd
2929
using NamedGraphs: NamedEdge, has_edge

src/boundarymps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using ITensors: inner
2-
using ITensors.ITensorMPS: ITensorMPS
2+
using ITensorMPS: ITensorMPS
33

44
#Given an ITensorNetwork on an Lx*Ly grid with sites indexed as (i,j) then perform contraction using a sequence of mps-mpo contractions
55
function contract_boundary_mps(tn::ITensorNetwork; kwargs...)

src/caches/beliefpropagationcache.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Graphs: IsDirected
22
using SplitApplyCombine: group
33
using LinearAlgebra: diag
44
using ITensors: dir
5-
using ITensors.ITensorMPS: ITensorMPS
5+
using ITensorMPS: ITensorMPS
66
using NamedGraphs.PartitionedGraphs:
77
PartitionedGraphs,
88
PartitionedGraph,

src/expect.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Dictionaries: Dictionary, set!
22
using ITensors: Op, op, contract, siteinds, which_op
3-
using ITensors.ITensorMPS: ITensorMPS, expect
3+
using ITensorMPS: ITensorMPS, expect
44

55
default_expect_alg() = "bp"
66

src/mpo_mps_compatibility.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using ITensors.ITensorMPS: ITensorMPS
1+
using ITensorMPS: ITensorMPS
22

33
function ITensorMPS.MPO(opsum::OpSum, s::IndsNetwork)
44
s_linear = [only(s[v]) for v in 1:nv(s)]

src/partitioneditensornetwork.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Graphs: dst, src
22
using ITensors: commoninds
3-
using ITensors.ITensorMPS: ITensorMPS
3+
using ITensorMPS: ITensorMPS
44
using NamedGraphs.GraphsExtensions: subgraph
55
using NamedGraphs.PartitionedGraphs: PartitionedGraph, PartitionEdge
66

src/solvers/alternating_update/alternating_update.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using ITensors: state
2-
using ITensors.ITensorMPS: linkind
2+
using ITensorMPS: linkind
33
using NamedGraphs.GraphsExtensions: GraphsExtensions
44

55
function alternating_update(

src/solvers/defaults.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Printf: @printf
2-
using ITensors.ITensorMPS: maxlinkdim
2+
using ITensorMPS: maxlinkdim
33
default_outputlevel() = 0
44
default_nsites() = 2
55
default_nsweeps() = 1 #? or nothing?

0 commit comments

Comments
 (0)