Skip to content

Commit 27a8b70

Browse files
committed
more bypassing of type stability issues...
1 parent c574dd3 commit 27a8b70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/MPSKitAdaptExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ end
3434
@inline Adapt.adapt_structure(to, W::MPSKit.JordanMPOTensor) =
3535
MPSKit.JordanMPOTensor(space(W), adapt(to, W.A), adapt(to, W.B), adapt(to, W.C), adapt(to, W.D))
3636
@inline Adapt.adapt_structure(to, mpo::MPOHamiltonian) =
37-
MPOHamiltonian(map(adapt(to), mpo.W))
37+
MPOHamiltonian(map(x -> adapt(to, x), mpo.W))
3838

3939
end

0 commit comments

Comments
 (0)