Closed DanPuzzuoli closed 8 months ago
It looks almost good. The below is a subtle suggestion.
-> ArrayLike that acts on states
y
via multiplication.
Good find - this is actually the scipy sparse version of the class so I changed "Array" -> "scipy sparse matrix".
Summary
Updates the
models
module API docs to reflect the change ofevaluation_mode
toarray_library
andvectorized
.Details and comments
In the interest of minimizing further documentation maintenance, I also slightly changed the
BaseGeneratorModel
abstract base class to implement thearray_library
property.BaseGeneratorModel
class has an__init__
that setsself._array_library
, and implements a concretearray_library
property.This enabled deleting the
array_library
property forGeneratorModel
,HamiltonianModel
, andLindbladModel
. As a result, changes to documentation of this property only need to be made in one place.