Skip to content

Commit b8169a9

Browse files
committed
One more try
1 parent 6790f37 commit b8169a9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/operators/abstractmpo.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ end
151151
Compute the mpo tensor that arises from multiplying MPOs.
152152
"""
153153
function fuse_mul_mpo(O1, O2)
154-
T = TensorKit.promote_storagetype(storagetype(O1), storagetype(O2))
154+
TT = promote_type(scalartype(O1), scalartype(O2))
155+
T = TensorKit.similarstoragetype(storagetype(O1), TT)
155156
F_left = fuser(T, left_virtualspace(O2), left_virtualspace(O1))
156157
F_right = fuser(T, right_virtualspace(O2), right_virtualspace(O1))
157158
return _fuse_mpo_mpo(O1, O2, F_left, F_right)

0 commit comments

Comments
 (0)