def do_make_molecule(self, *args, **kwargs):
    '\n\n        Parameters\n        ----------\n        args\n        kwargs\n\n        Returns\n        -------\n\n        '
    assert ('one_body_integrals' in kwargs)
    assert ('two_body_integrals' in kwargs)
    one_body_integrals = kwargs['one_body_integrals']
    two_body_integrals = kwargs['two_body_integrals']
    if ('ordering' in kwargs):
        two_body_integrals = NBodyTensor(two_body_integrals, ordering=kwargs['ordering'])
        two_body_integrals.reorder(to='openfermion')
        two_body_integrals = two_body_integrals.elems
    if ('nuclear_repulsion' in kwargs):
        nuclear_repulsion = kwargs['nuclear_repulsion']
    else:
        nuclear_repulsion = 0.0
        warnings.warn('No nuclear_repulsion given for custom molecule, setting to zero', category=TequilaWarning)
    if ('n_orbitals' in kwargs):
        n_orbitals = kwargs['n_orbitals']
    else:
        n_orbitals = one_body_integrals.shape[0]
        for i in [0, 1, 2, 3]:
            assert (n_orbitals == two_body_integrals.shape[i])
    molecule = MolecularData(**self.parameters.molecular_data_param)
    molecule.one_body_integrals = one_body_integrals
    molecule.two_body_integrals = two_body_integrals
    molecule.nuclear_repulsion = nuclear_repulsion
    molecule.n_orbitals = n_orbitals
    if ('n_electrons' in kwargs):
        molecule.n_electrons = kwargs['n_electrons']
    molecule.save()
    return molecule
Parameters
----------
args
kwargs

Returns
-------
def do_make_molecule(self, *args, **kwargs):
    '\n\n        Parameters\n        ----------\n        args\n        kwargs\n\n        Returns\n        -------\n\n        '
    assert ('one_body_integrals' in kwargs)
    assert ('two_body_integrals' in kwargs)
    one_body_integrals = kwargs['one_body_integrals']
    two_body_integrals = kwargs['two_body_integrals']
    if ('ordering' in kwargs):
        two_body_integrals = NBodyTensor(two_body_integrals, ordering=kwargs['ordering'])
        two_body_integrals.reorder(to='openfermion')
        two_body_integrals = two_body_integrals.elems
    if ('nuclear_repulsion' in kwargs):
        nuclear_repulsion = kwargs['nuclear_repulsion']
    else:
        nuclear_repulsion = 0.0
        warnings.warn('No nuclear_repulsion given for custom molecule, setting to zero', category=TequilaWarning)
    if ('n_orbitals' in kwargs):
        n_orbitals = kwargs['n_orbitals']
    else:
        n_orbitals = one_body_integrals.shape[0]
        for i in [0, 1, 2, 3]:
            assert (n_orbitals == two_body_integrals.shape[i])
    molecule = MolecularData(**self.parameters.molecular_data_param)
    molecule.one_body_integrals = one_body_integrals
    molecule.two_body_integrals = two_body_integrals
    molecule.nuclear_repulsion = nuclear_repulsion
    molecule.n_orbitals = n_orbitals
    if ('n_electrons' in kwargs):
        molecule.n_electrons = kwargs['n_electrons']
    molecule.save()
    return molecule