Skip to content

Commit

Permalink
fixing openfermion bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
teaguetomesh committed Jun 11, 2019
1 parent 741e18e commit a25ce49
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions generate_H_v2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from openfermion.hamiltonians import MolecularData


name = 'H2'
basis = 'sto-3g'
multiplicity = 1
num_electrons = 2

bond_length = 0.7
description = str(bond_length)
geometry = [('H', (0., 0., 0.)), ('H', (0., 0., bond_length))]

myfile = 'molecule_data/{}_{}_{}_{}.hdf5'.format(name,basis,'singlet',bond_length)

molecule = MolecularData(geometry, basis, multiplicity, description=description,
filename=filename)

0 comments on commit a25ce49

Please sign in to comment.