Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ITensorNetworksNext"
uuid = "302f2e75-49f0-4526-aef7-d8ba550cb06c"
version = "0.9.6"
version = "0.9.7"
authors = ["ITensor developers <support@itensor.org> and contributors"]

[workspace]
Expand Down Expand Up @@ -36,7 +36,7 @@ Combinatorics = "1"
DataGraphs = "0.5"
Dictionaries = "0.4.5"
Graphs = "1.13.1"
ITensorBase = "0.10, 0.11"
ITensorBase = "0.10, 0.11, 0.12"
LinearAlgebra = "1.10"
MacroTools = "0.5.16"
MatrixAlgebraKit = "0.6"
Expand Down
4 changes: 1 addition & 3 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ SparseArraysBase = "0d5efcca-f356-4864-8770-e1ed8d78f208"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
TensorAlgebra = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a"
TensorOperations = "6aa20fa7-93e2-5fca-9bc0-fbd0db3c71a2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources.ITensorNetworksNext]
Expand All @@ -32,7 +31,7 @@ DataGraphs = "0.5"
Dictionaries = "0.4.5"
GradedArrays = "0.13.2"
Graphs = "1.13.1"
ITensorBase = "0.10, 0.11"
ITensorBase = "0.10, 0.11, 0.12"
ITensorNetworksNext = "0.9"
ITensorPkgSkeleton = "0.3.42"
MatrixAlgebraKit = "0.6"
Expand All @@ -45,5 +44,4 @@ SparseArraysBase = "0.10.4"
StableRNGs = "1"
Suppressor = "0.2.8"
TensorAlgebra = "0.16, 0.17"
TensorOperations = "5.3.1"
Test = "1.10"
9 changes: 4 additions & 5 deletions test/test_contract_network.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using Graphs: edges, vertices
using ITensorBase: Greedy, Index, Optimal
using ITensorBase: Greedy, Index
using ITensorNetworksNext: Exact, ITensorNetwork, LeftAssociative, contract_network,
linkinds, siteinds, tensornetwork
using NamedGraphs.GraphsExtensions: arranged_edges, incident_edges
using NamedGraphs.NamedGraphGenerators: named_grid
using OMEinsumContractionOrders: GreedyMethod, TreeSA
using TensorOperations: TensorOperations
using OMEinsumContractionOrders: ExhaustiveSearch, GreedyMethod, TreeSA
using Test: @test, @testset

@testset "contract_network" begin
Expand All @@ -20,7 +19,7 @@ using Test: @test, @testset

ABCD_1 = contract_network([A, B, C, D]; alg = orderalg(LeftAssociative()))
ABCD_2 = contract_network([A, B, C, D]; alg = orderalg(Greedy()))
ABCD_3 = contract_network([A, B, C, D]; alg = orderalg(Optimal()))
ABCD_3 = contract_network([A, B, C, D]; alg = orderalg(ExhaustiveSearch()))
ABCD_4 = contract_network([A, B, C, D]; alg = orderalg(GreedyMethod()))
ABCD_5 = contract_network([A, B, C, D]; alg = orderalg(TreeSA()))
@test ABCD_1 == ABCD_2 == ABCD_3
Expand All @@ -40,7 +39,7 @@ using Test: @test, @testset

z1 = contract_network(tn; alg = orderalg(LeftAssociative()))[]
z2 = contract_network(tn; alg = orderalg(Greedy()))[]
z3 = contract_network(tn; alg = orderalg(Optimal()))[]
z3 = contract_network(tn; alg = orderalg(ExhaustiveSearch()))[]
z4 = contract_network(tn; alg = orderalg(GreedyMethod()))[]
z5 = contract_network(tn; alg = orderalg(TreeSA()))[]

Expand Down
Loading