ffsim.linear_operator

ffsim.linear_operator(obj, norb, nelec)[source]

Return a SciPy LinearOperator representing the object.

Parameters:
  • obj (Any) – The object to convert to a LinearOperator.

  • 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.