Skip to content

fix `to_dense` in `AbstractOperator`

Vicentini Filippo requested to merge PhilipVinc-patch-1 into v2.1

Created by: PhilipVinc

(A minor change that I'll need for Lindblad)

The fact that there is only one entry per change is a silent assumption that holds true at the moment, but is not really enforced nor needed anywhere.

Moreover, with to_sparse you don't have this problem.

I came across this while working with Lindblad ME because there I have multiple entries with no changes.

Merge request reports