Support sparse matrices in LocalOperator
Created by: PhilipVinc
This PR significantly speeds up the construction of LocalOperators.
TODO:
- Add logic to
_setup
to support sparse matrices (that converts the symbolic representation of LocaLoperators to our internal one) - Maybe convert all
operator.spin.sigmax/y/z
to use sparse matrices internally. - tests
I would need someone to bring this to the finish line.