qmctorch.scf.calculator package
Submodules
qmctorch.scf.calculator.adf module
- class qmctorch.scf.calculator.adf.CalculatorADF(atoms: list, atom_coords: list, basis: str, charge: int, spin: int, scf: str, units: str, molname: str, savefile: str)[source]
Bases:
CalculatorBaseInitialize the ADF calculator.
- Parameters:
atoms (list) – List of atom symbols.
atom_coords (list) – List of atomic coordinates.
basis (str) – Basis set name.
charge (int) – Molecular charge.
spin (int) – Spin multiplicity.
scf (str) – Self-consistent field method.
units (str) – Units for atomic coordinates.
molname (str) – Molecule name.
savefile (str) – File name to save results.
- Raises:
ValueError – If charge or spin is not supported.
- Returns:
None
- run() SimpleNamespace[source]
Run the calculation using ADF.
- get_plams_settings() scm.plams.Settings[source]
Returns a plams setting object.
- Returns:
A plams setting object.
- Return type:
plams.Settings
- get_basis_data(kffile: str) SimpleNamespace[source]
Save the basis information needed to compute the AO values.
- Parameters:
kffile (str) – Path to the KF file.
- Returns:
A namespace containing the basis information.
- Return type:
SimpleNamespace
- class qmctorch.scf.calculator.adf.CalculatorADF2019(atoms: List[str], atom_coords: List[numpy.ndarray], basis: str, charge: int, spin: int, scf: str, units: str, molname: str, savefile: str)[source]
Bases:
CalculatorADFInitialize the ADF2019 calculator.
- Parameters:
atoms (list) – List of atom symbols.
atom_coords (list) – List of atomic coordinates.
basis (str) – Basis set name.
charge (int) – Molecular charge.
spin (int) – Spin multiplicity.
scf (str) – Self-consistent field method.
units (str) – Units of the coordinates; ‘bohr’ or ‘angs’.
molname (str) – Molecule name.
savefile (str) – File name to save results.
- Returns:
None
qmctorch.scf.calculator.calculator_base module
qmctorch.scf.calculator.pyscf module
- class qmctorch.scf.calculator.pyscf.CalculatorPySCF(atoms: List[str], atom_coords: List[numpy.ndarray], basis: str, charge: int, spin: int, scf: str, units: str, molname: str, savefile: str)[source]
Bases:
CalculatorBaseInitialize the PySCF calculator.
- Parameters:
atoms (list) – List of atom symbols.
atom_coords (list) – List of atomic coordinates.
basis (str) – Basis set name.
charge (int) – Molecular charge.
spin (int) – Spin multiplicity.
scf (str) – Self-consistent field method.
units (str) – Units of the coordinates; ‘bohr’ or ‘angs’.
molname (str) – Molecule name.
savefile (str) – File name to save results.
- Returns:
None
- run() SimpleNamespace[source]
Run the scf calculation using PySCF.
- Returns:
Contains the basis set data.
- Return type:
SimpleNamespace
- get_basis_data(mol: pyscf.gto.M, rhf: pyscf.scf.RHF) SimpleNamespace[source]
Get the information about the basis
- Parameters:
Molecule (mol {pyscf.gto.M} -- psycf)
object (rhf {pyscf.scf} -- scf)
- Returns:
SimpleNamespace – basis data
Module contents
- class qmctorch.scf.calculator.CalculatorBase(atoms, atom_coords, basis, charge, spin, scf, units, molname, calcname, savefile)[source]
Bases:
object
- class qmctorch.scf.calculator.CalculatorADF(atoms: list, atom_coords: list, basis: str, charge: int, spin: int, scf: str, units: str, molname: str, savefile: str)[source]
Bases:
CalculatorBaseInitialize the ADF calculator.
- Parameters:
atoms (list) – List of atom symbols.
atom_coords (list) – List of atomic coordinates.
basis (str) – Basis set name.
charge (int) – Molecular charge.
spin (int) – Spin multiplicity.
scf (str) – Self-consistent field method.
units (str) – Units for atomic coordinates.
molname (str) – Molecule name.
savefile (str) – File name to save results.
- Raises:
ValueError – If charge or spin is not supported.
- Returns:
None
- run() SimpleNamespace[source]
Run the calculation using ADF.
- get_plams_settings() scm.plams.Settings[source]
Returns a plams setting object.
- Returns:
A plams setting object.
- Return type:
plams.Settings
- get_basis_data(kffile: str) SimpleNamespace[source]
Save the basis information needed to compute the AO values.
- Parameters:
kffile (str) – Path to the KF file.
- Returns:
A namespace containing the basis information.
- Return type:
SimpleNamespace
- class qmctorch.scf.calculator.CalculatorADF2019(atoms: List[str], atom_coords: List[numpy.ndarray], basis: str, charge: int, spin: int, scf: str, units: str, molname: str, savefile: str)[source]
Bases:
CalculatorADFInitialize the ADF2019 calculator.
- Parameters:
atoms (list) – List of atom symbols.
atom_coords (list) – List of atomic coordinates.
basis (str) – Basis set name.
charge (int) – Molecular charge.
spin (int) – Spin multiplicity.
scf (str) – Self-consistent field method.
units (str) – Units of the coordinates; ‘bohr’ or ‘angs’.
molname (str) – Molecule name.
savefile (str) – File name to save results.
- Returns:
None
- class qmctorch.scf.calculator.CalculatorPySCF(atoms: List[str], atom_coords: List[numpy.ndarray], basis: str, charge: int, spin: int, scf: str, units: str, molname: str, savefile: str)[source]
Bases:
CalculatorBaseInitialize the PySCF calculator.
- Parameters:
atoms (list) – List of atom symbols.
atom_coords (list) – List of atomic coordinates.
basis (str) – Basis set name.
charge (int) – Molecular charge.
spin (int) – Spin multiplicity.
scf (str) – Self-consistent field method.
units (str) – Units of the coordinates; ‘bohr’ or ‘angs’.
molname (str) – Molecule name.
savefile (str) – File name to save results.
- Returns:
None
- run() SimpleNamespace[source]
Run the scf calculation using PySCF.
- Returns:
Contains the basis set data.
- Return type:
SimpleNamespace
- get_basis_data(mol: pyscf.gto.M, rhf: pyscf.scf.RHF) SimpleNamespace[source]
Get the information about the basis
- Parameters:
Molecule (mol {pyscf.gto.M} -- psycf)
object (rhf {pyscf.scf} -- scf)
- Returns:
SimpleNamespace – basis data