def get_integrals(self, two_body_ordering='openfermion'):
    '\n        Returns\n        -------\n        Tuple with:\n        constant part (nuclear_repulsion + possible integrated parts from active-spaces)\n        one_body_integrals\n        two_body_integrals\n\n        '
    if ((self.active_space is not None) and (len(self.active_space.frozen_reference_orbitals) > 0)):
        (c, h1, h2) = self.molecule.get_active_space_integrals(active_indices=self.active_space.active_orbitals, occupied_indices=self.active_space.frozen_reference_orbitals)
    else:
        c = 0.0
        h1 = self.molecule.one_body_integrals
        h2 = self.molecule.two_body_integrals
    c += self.molecule.nuclear_repulsion
    h2 = NBodyTensor(h2, ordering='openfermion')
    h2 = h2.reorder(to=two_body_ordering).elems
    return (c, h1, h2)
Returns
-------
Tuple with:
constant part (nuclear_repulsion + possible integrated parts from active-spaces)
one_body_integrals
two_body_integrals
def get_integrals(self, two_body_ordering='openfermion'):
    '\n        Returns\n        -------\n        Tuple with:\n        constant part (nuclear_repulsion + possible integrated parts from active-spaces)\n        one_body_integrals\n        two_body_integrals\n\n        '
    if ((self.active_space is not None) and (len(self.active_space.frozen_reference_orbitals) > 0)):
        (c, h1, h2) = self.molecule.get_active_space_integrals(active_indices=self.active_space.active_orbitals, occupied_indices=self.active_space.frozen_reference_orbitals)
    else:
        c = 0.0
        h1 = self.molecule.one_body_integrals
        h2 = self.molecule.two_body_integrals
    c += self.molecule.nuclear_repulsion
    h2 = NBodyTensor(h2, ordering='openfermion')
    h2 = h2.reorder(to=two_body_ordering).elems
    return (c, h1, h2)