Skip to content

Commit f858169

Browse files
committed
Add TensorOps to test Project.toml. Alphabetize
1 parent 9ca88b4 commit f858169

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

ext/ITensorNetworksTensorOperationsExt/ITensorNetworksTensorOperationsExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ module ITensorNetworksTensorOperationsExt
22

33
using ITensors: ITensors, ITensor, dim, inds
44
using ITensorNetworks: ITensorNetworks
5-
using TensorOperations: optimaltree, TensorOperations
65
using NDTensors.AlgorithmSelection: @Algorithm_str
6+
using TensorOperations: TensorOperations, optimaltree
77

88
function ITensorNetworks.contraction_sequence(::Algorithm"optimal", tn::Vector{ITensor})
99
network = collect.(inds.(tn))

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2727
SplitApplyCombine = "03a91e81-4c3e-53e1-a0a4-9c0c8f19dd66"
2828
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
2929
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
30+
TensorOperations = "6aa20fa7-93e2-5fca-9bc0-fbd0db3c71a2"
3031
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3132
UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
3233
Weave = "44d3d7a6-8a23-5bf8-98c5-b353f8df5ec9"

test/test_additensornetworks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ using ITensorNetworks: ITensorNetwork, inner_network, random_tensornetwork, site
66
using ITensors: ITensors, apply, op, scalar, inner
77
using LinearAlgebra: norm_sqr
88
using StableRNGs: StableRNG
9-
using Test: @test, @testset
109
using TensorOperations: TensorOperations
10+
using Test: @test, @testset
1111
@testset "add_itensornetworks" begin
1212
g = named_grid((2, 2))
1313
s = siteinds("S=1/2", g)

test/test_contraction_sequence.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ using ITensorNetworks:
55
using ITensors: ITensors, contract
66
using NamedGraphs.NamedGraphGenerators: named_grid
77
using OMEinsumContractionOrders: OMEinsumContractionOrders
8-
using TensorOperations: TensorOperations
98
using StableRNGs: StableRNG
9+
using TensorOperations: TensorOperations
1010
using Test: @test, @testset
1111
@testset "contraction_sequence" begin
1212
ITensors.@disable_warn_order begin

test/test_expect.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ using ITensorNetworks:
1111
original_state_vertex
1212
using SplitApplyCombine: group
1313
using StableRNGs: StableRNG
14-
using Test: @test, @testset
1514
using TensorOperations: TensorOperations
15+
using Test: @test, @testset
1616
@testset "Test Expect" begin
1717
#Test on a tree
1818
L, χ = 4, 2

test/test_inner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ using SplitApplyCombine: group
1515
using Graphs: SimpleGraph, uniform_tree
1616
using NamedGraphs: NamedGraph
1717
using StableRNGs: StableRNG
18-
using Test: @test, @testset
1918
using TensorOperations: TensorOperations
19+
using Test: @test, @testset
2020
@testset "Inner products, BP vs exact comparison" begin
2121
L = 4
2222
χ = 2

0 commit comments

Comments
 (0)