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
2 changes: 1 addition & 1 deletion src/algorithms/derivatives/mpo_derivatives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function (H::PrecomputedCDerivative)(x::MPSBondTensor)

TC = TensorOperations.promote_contract(scalartype(x), scalartype(H))
xR = TensorOperations.tensoralloc_contract(
TC, x, ((1,), (2,)), false, R, ((1,), (2, 3)), false, ((1, 2), (3,)), Val(true), allocator
TC, x, ((1,), (2,)), false, R, ((1,), (3, 2)), false, ((1, 3), (2,)), Val(true), allocator
)
mul_front!(xR, x, R, One(), Zero(), backend, allocator)
LxR = L * xR
Expand Down
6 changes: 3 additions & 3 deletions test/symmetries/multifusion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ module TestMultifusion

@testset "InfiniteMPS construction" begin
for (P, V) in bad_fusions
@test_throws ArgumentError InfiniteMPS([P], [V])
@test_throws SpaceMismatch InfiniteMPS([P], [V])
end
end

@testset "FiniteMPS construction" begin
for (P, V) in bad_fusions
@test_warn "no fusion channels available at site 2" FiniteMPS(rand(2:100), P, V)
@test_warn "no fusion channels available at site 2" FiniteMPS(rand(2:100), P, V; left = V, right = V)
@test_throws ArgumentError FiniteMPS(rand(2:100), P, V)
@test_throws SpaceMismatch FiniteMPS(rand(2:100), P, V; left = V, right = V)
end
end

Expand Down
Loading