Skip to content

Commit 30527de

Browse files
committed
Fix block iterator for BraidingTensor
1 parent dd013fd commit 30527de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tensors/braidingtensor.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function Base.iterate(iter::BlockIterator{<:BraidingTensor}, state...)
114114
next = iterate(iter.structure, state...)
115115
isnothing(next) && return next
116116
c, state = next
117-
return block(iter.t, c), state
117+
return c => block(iter.t, c), state
118118
end
119119
@inline Base.getindex(iter::BlockIterator{<:BraidingTensor}, c::Sector) = block(iter.t, c)
120120

0 commit comments

Comments
 (0)