Skip to content

Commit 1983070

Browse files
committed
simplify expression
1 parent 22d01d0 commit 1983070

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utility/utility.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ function add_util_mpoleg(tensor::AbstractTensorMap{T, S, N1, N2}) where {T, S, N
7373
# separate function for mpo because add_util_leg is also used for mps from tensors
7474
# and the additional legs there can be different depending on the fusion tree
7575

76-
ou = Vect[sectortype(_firstspace(tensor))](one(first(sectors(_firstspace(tensor)))) => 1)
76+
#TODO?: might need a left and right utility space if MPO has module virtual space (doesn't happen for hamiltonians)
77+
ou = S(one(first(blocksectors(tensor))) => 1)
7778

7879
util_front = isomorphism(storagetype(tensor), ou * codomain(tensor), codomain(tensor))
7980
util_back = isomorphism(storagetype(tensor), domain(tensor), domain(tensor) * ou)

0 commit comments

Comments
 (0)