Skip to content

Commit d0e2984

Browse files
committed
Formatting and delete file
1 parent 5997fb0 commit d0e2984

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

ext/ITensorsTensorOperationsExt/ITensorsTensorOperationsExt.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ using ITensors: ITensors, ITensor, dim, inds
44
using NDTensors.AlgorithmSelection: @Algorithm_str
55
using TensorOperations: TensorOperations, optimaltree
66

7-
function ITensors.optimal_contraction_sequence(As::Union{Vector{<:ITensor},Tuple{Vararg{ITensor}}})
7+
function ITensors.optimal_contraction_sequence(
8+
As::Union{Vector{<:ITensor},Tuple{Vararg{ITensor}}}
9+
)
810
network = collect.(inds.(As))
911
inds_to_dims = Dict(i => Float64(dim(i)) for i in unique(reduce(vcat, network)))
1012
seq, _ = optimaltree(network, inds_to_dims)

src/tensor_operations/tensor_algebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function optimal_contraction_sequence(As)
134134
return throw(
135135
ArgumentError(
136136
"Optimal contraction sequence isn't defined. Try loading a backend package like
137-
TensorOperations.jl",
137+
TensorOperations.jl"
138138
),
139139
)
140140
end

test/ext/ITensorsTensorOperationsExt/Project.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/ext/ITensorsTensorOperationsExt/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ using TensorOperations: TensorOperations
8484

8585
seq = ITensors.optimal_contraction_sequence([A, A'', A', A'''])
8686
@test length(seq) == 2
87-
@test issetequal(Any[3,1], first(seq)) || issetequal(Any[2,4], first(seq))
87+
@test issetequal(Any[3, 1], first(seq)) || issetequal(Any[2, 4], first(seq))
8888

8989
time_without_opt = @elapsed A * A'' * A' * A'''
9090

0 commit comments

Comments
 (0)