Closed mertall closed 4 years ago
tom="Li .0 .0 .0; H .0 .0 " + str(dist) with atom="Be .0 .0 .0; H .0 .0 -" + str(dist) + "; H .0 .0 " + str(dist), format must be centered around a fixed atom. will adjust the script to mark one as 0,0,0 and it should run.
RuntimeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/qiskit/chemistry/drivers/pyscfd/integrals.py in compute_integrals(atom, unit, charge, spin, basis, hf_method, conv_tol, max_cycle, init_guess, max_memory) 69 mol.spin = spin ---> 70 mol.build(parse_arg=False) 71 q_mol = _calculate_integrals(mol, hf_method, conv_tol, max_cycle, init_guess)
/opt/conda/lib/python3.7/site-packages/pyscf/gto/mole.py in build(self, dump_input, parse_arg, verbose, output, max_memory, atom, basis, unit, nucmod, ecp, charge, spin, symmetry, symmetry_subgroup, cart) 2336 # number of electrons are consistent. -> 2337 self.nelec 2338
/opt/conda/lib/python3.7/site-packages/pyscf/gto/mole.py in nelec(self) 2102 'Note mol.spin = 2S = Nalpha - Nbeta, not 2S+1' % -> 2103 (ne, self.spin)) 2104 return nalpha, nbeta
RuntimeError: Electron number 27 and spin 0 are not consistent Note mol.spin = 2S = Nalpha - Nbeta, not 2S+1
The above exception was the direct cause of the following exception:
QiskitChemistryError Traceback (most recent call last)