qmctorch.scf.calculator package

Module contents

class qmctorch.scf.calculator.CalculatorBase(atoms, atom_coords, basis, scf, units, molname, calcname, savefile)[source]

Bases: object

run()[source]
save_data()[source]
static normalize_columns(mat)[source]

Normalize a matrix column-wise.

Parameters:{np.ndarray} -- the matrix to be normalized (mat) –
Returns:np.ndarray – normalized matrix
class qmctorch.scf.calculator.CalculatorADF(atoms, atom_coords, basis, scf, units, molname, savefile)[source]

Bases: qmctorch.scf.calculator.calculator_base.CalculatorBase

run()[source]

Run the calculation using ADF.

init_plams()[source]

Init PLAMS.

get_plams_molecule()[source]

Returns a plams molecule object.

get_plams_settings()[source]

Returns a plams setting object.

get_basis_data(kffile)[source]

Save the basis information needed to compute the AO values.

static read_array(kf, section, name)[source]

read a data from the kf file

Parameters:
  • kf (file handle) – kf file
  • section (str) – name of the section
  • name (str) – name of the property
Returns:

data

Return type:

np.data

class qmctorch.scf.calculator.CalculatorADF2019(atoms, atom_coords, basis, scf, units, molname, savefile)[source]

Bases: qmctorch.scf.calculator.adf.CalculatorADF

get_plams_molecule()[source]

Returns a plams molecule object.

get_plams_settings()[source]

Returns a plams setting object.

class qmctorch.scf.calculator.CalculatorPySCF(atoms, atom_coords, basis, scf, units, molname, savefile)[source]

Bases: qmctorch.scf.calculator.calculator_base.CalculatorBase

run()[source]

Run the scf calculation using PySCF.

get_basis_data(mol, rhf)[source]

Save the data to HDF5

Parameters:
  • {pyscf.gto.M} -- psycf Molecule (mol) –
  • {pyscf.scf} -- scf object (rhf) –
get_atoms_str()[source]

Refresh the atom string (use after atom move).

static get_bas_n(mol)[source]