@staticmethod
def convert_to_list(geometry):
    'Convert a molecular structure given as a string into a list suitable for openfermion\n\n        Parameters\n        ----------\n        geometry :\n            a string specifying a mol. structure. E.g. geometry="h 0.0 0.0 0.0\n h 0.0 0.0 1.0"\n\n        Returns\n        -------\n        type\n            A list with the correct format for openfermion E.g return [ [\'h\',[0.0,0.0,0.0], [..]]\n\n        '
    result = []
    lines = [l for l in geometry.split('\n') if l]
    for line in lines:
        words = line.split()
        if (len(words) < 4):
            words += ([0.0] * (4 - len(words)))
        try:
            tmp = (ParametersQC.format_element_name(words[0]), (float(words[1]), float(words[2]), float(words[3])))
            result.append(tmp)
        except ValueError:
            print('get_geometry list unknown line:\n ', line, '\n proceed with caution!')
    return result
Convert a molecular structure given as a string into a list suitable for openfermion

       Parameters
       ----------
       geometry :
           a string specifying a mol. structure. E.g. geometry="h 0.0 0.0 0.0
h 0.0 0.0 1.0"

       Returns
       -------
       type
           A list with the correct format for openfermion E.g return [ ['h',[0.0,0.0,0.0], [..]]
@staticmethod
def convert_to_list(geometry):
    'Convert a molecular structure given as a string into a list suitable for openfermion\n\n        Parameters\n        ----------\n        geometry :\n            a string specifying a mol. structure. E.g. geometry="h 0.0 0.0 0.0\n h 0.0 0.0 1.0"\n\n        Returns\n        -------\n        type\n            A list with the correct format for openfermion E.g return [ [\'h\',[0.0,0.0,0.0], [..]]\n\n        '
    result = []
    lines = [l for l in geometry.split('\n') if l]
    for line in lines:
        words = line.split()
        if (len(words) < 4):
            words += ([0.0] * (4 - len(words)))
        try:
            tmp = (ParametersQC.format_element_name(words[0]), (float(words[1]), float(words[2]), float(words[3])))
            result.append(tmp)
        except ValueError:
            print('get_geometry list unknown line:\n ', line, '\n proceed with caution!')
    return result