ffsim.SupportsLinearOperator

class ffsim.SupportsLinearOperator(*args, **kwargs)[source]

Bases: Protocol

An object that can be converted to a SciPy LinearOperator.

Methods

_linear_operator_(norb, nelec)

Return a SciPy LinearOperator representing the object.

_linear_operator_(norb, nelec)[source]

Return a SciPy LinearOperator representing the object.

Parameters:
  • norb (int) – The number of spatial orbitals.

  • nelec (int | tuple[int, int]) – The number of alpha and beta electrons.

Return type:

LinearOperator

Returns:

A Scipy LinearOperator representing the object.