from qiskit_aqua_chemistry import AquaChemistry

from qiskit import IBMQ
IBMQ.load_accounts()

# Input dictionary to configure Qiskit AQUA Chemistry for the chemistry problem.
aqua_chemistry_dict = {
    'driver': {'name': 'HDF5'},
    'HDF5': {'hdf5_input': '0.7_sto-3g.hdf5'},
    'operator': {'name': 'hamiltonian'},
    'algorithm': {'name': 'VQE'},
    'optimizer': {'name': 'COBYLA'},
    'variational_form': {'name': 'UCCSD'},
    'initial_state': {'name': 'HartreeFock'},
    'backend': {'name': 'statevector_simulator'}
}

solver = AquaChemistry()
result = solver.run(aqua_chemistry_dict)

print('Ground state energy: {}'.format(result['energy']))

for line in result['printable']:
    print(line)