Skip to content

Commit f6578b6

Browse files
committed
add comments
1 parent 1983070 commit f6578b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/operators/mpohamiltonian.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ function FiniteMPOHamiltonian(lattice::AbstractArray{<:VectorSpace}, local_opera
388388
somempo = local_mpos[1].second[1]
389389
sp_oneleg = space(somempo, 1)
390390

391-
_oneunit = oneunit(sp_oneleg)
391+
_oneunit = oneunit(sp_oneleg) # should be rightoneunit, but MPOHamiltonians are always diagonal for now
392392

393393
virtualsumspaces = Vector{SumSpace{S}}(undef, length(lattice) + 1)
394394
virtualsumspaces[1] = SumSpace(fill(_oneunit, 1))
@@ -669,7 +669,7 @@ function Base.:+(
669669
) where {O <: JordanMPOTensor}
670670
N = check_length(H₁, H₂)
671671
H = similar(parent(H₁))
672-
Vtriv = oneunit(space(first(H₁[1]), 1))
672+
Vtriv = oneunit(space(first(H₁[1]), 1)) # should also be rightoneunit, but is currently diagonal
673673

674674
for i in 1:N
675675
A = cat(H₁[i].A, H₂[i].A; dims = (1, 4))

0 commit comments

Comments
 (0)