Skip to content

Commit a82144d

Browse files
committed
update oplus syntax
1 parent f87ab71 commit a82144d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/operators/mpohamiltonian.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,13 @@ function Base.:+(H₁::MPOH, H₂::MPOH) where {MPOH<:MPOHamiltonian}
394394
Vₗ₁ = left_virtualspace(H₁, i)
395395
Vₗ₂ = left_virtualspace(H₂, i)
396396
@assert Vₗ₁[1] == Vₗ₂[1] && Vₗ₁[end] == Vₗ₂[end] "trivial spaces should match"
397-
Vₗ = (!isinf && i == 1) ? Vₗ₁ : Vₗ₁[1:(end - 1)] Vₗ₂[2:end]
397+
Vₗ = (!isinf && i == 1) ? Vₗ₁ : BlockTensorKit.oplus(Vₗ₁[1:(end - 1)], Vₗ₂[2:end])
398398

399399
Vᵣ₁ = right_virtualspace(H₁, i)
400400
Vᵣ₂ = right_virtualspace(H₂, i)
401401
@assert Vᵣ₁[1] == Vᵣ₂[1] && Vᵣ₁[end] == Vᵣ₂[end] "trivial spaces should match"
402-
Vᵣ = (!isinf && i == length(H)) ? Vᵣ₁ : Vᵣ₁[1:(end - 1)] Vᵣ₂[2:end]
402+
Vᵣ = (!isinf && i == length(H)) ? Vᵣ₁ :
403+
BlockTensorKit.oplus(Vᵣ₁[1:(end - 1)], Vᵣ₂[2:end])
403404

404405
W = similar(eltype(H), Vₗ physicalspace(H₁, i) physicalspace(H₁, i) Vᵣ')
405406
#=

0 commit comments

Comments
 (0)