def __init__(self, elems: numpy.ndarray=None, active_indices: list=None, ordering: str=None, size_full: int=None):
    '\n        Parameters\n        ----------\n        elems: Tensor data as numpy array\n        active_indices: List of active indices in total ordering\n        ordering: Ordering scheme for two body tensors\n        "dirac" or "phys": <12|g|12>\n            .. math::\n                g_{pqrs} = \\int d1 d2 p(1)q(2) g(1,2) r(1)s(2)\n        "mulliken" or "chem": (11|g|22)\n            .. math::\n                g_{pqrs} = \\int d1 d2 p(1)r(2) g(1,2) q(1)s(2)\n        "openfermion":\n            .. math:: [12|g|21]\n                g_{gqprs} = \\int d1 d2 p(1)q(2) g(1,2) s(1)r(2)\n\n        size_full\n        '
    self.elems = elems
    if (active_indices is not None):
        self.active_indices = active_indices
    self._passive_indices = None
    self._full_indices = None
    self._indices_set: bool = False
    self.order = len(self.elems.shape)
    if (size_full is None):
        self._size_full = self.elems.shape[0]
    else:
        self._size_full = size_full
    if (self.order == 4):
        self.ordering = self.Ordering(ordering)
    else:
        if (ordering is not None):
            raise Exception('Ordering only implemented for tensors of order 4 / 2-body tensors.')
        self.ordering = None
Parameters
----------
elems: Tensor data as numpy array
active_indices: List of active indices in total ordering
ordering: Ordering scheme for two body tensors
"dirac" or "phys": <12|g|12>
    .. math::
        g_{pqrs} = \int d1 d2 p(1)q(2) g(1,2) r(1)s(2)
"mulliken" or "chem": (11|g|22)
    .. math::
        g_{pqrs} = \int d1 d2 p(1)r(2) g(1,2) q(1)s(2)
"openfermion":
    .. math:: [12|g|21]
        g_{gqprs} = \int d1 d2 p(1)q(2) g(1,2) s(1)r(2)

size_full
def __init__(self, elems: numpy.ndarray=None, active_indices: list=None, ordering: str=None, size_full: int=None):
    '\n        Parameters\n        ----------\n        elems: Tensor data as numpy array\n        active_indices: List of active indices in total ordering\n        ordering: Ordering scheme for two body tensors\n        "dirac" or "phys": <12|g|12>\n            .. math::\n                g_{pqrs} = \\int d1 d2 p(1)q(2) g(1,2) r(1)s(2)\n        "mulliken" or "chem": (11|g|22)\n            .. math::\n                g_{pqrs} = \\int d1 d2 p(1)r(2) g(1,2) q(1)s(2)\n        "openfermion":\n            .. math:: [12|g|21]\n                g_{gqprs} = \\int d1 d2 p(1)q(2) g(1,2) s(1)r(2)\n\n        size_full\n        '
    self.elems = elems
    if (active_indices is not None):
        self.active_indices = active_indices
    self._passive_indices = None
    self._full_indices = None
    self._indices_set: bool = False
    self.order = len(self.elems.shape)
    if (size_full is None):
        self._size_full = self.elems.shape[0]
    else:
        self._size_full = size_full
    if (self.order == 4):
        self.ordering = self.Ordering(ordering)
    else:
        if (ordering is not None):
            raise Exception('Ordering only implemented for tensors of order 4 / 2-body tensors.')
        self.ordering = None