ffsim.SupportsDiagonal¶
- class ffsim.SupportsDiagonal(*args, **kwargs)[source]¶
Bases:
SupportsTrace,ProtocolA linear operator whose diagonal entries can be returned.
Methods
_diag_(norb, nelec)Return the diagonal entries of the linear operator.
_trace_(norb, nelec)Return the trace of the linear operator.