atomli.calculators
Generated from the public Python surface of Atomli 0.1.18.
LennardJones(epsilon=1.0, sigma=1.0, rc=None, shift=False)
Section titled “LennardJones(epsilon=1.0, sigma=1.0, rc=None, shift=False)”analyze_fields(self, /, kinds, *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, density_floor=1e-12, kinetic_density=None, charges=False, atoms=None)
Section titled “analyze_fields(self, /, kinds, *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, density_floor=1e-12, kinetic_density=None, charges=False, atoms=None)”Evaluate related fields from one retained state and one density grid. Kinds include electron_density, spin_density, orbital_amplitude, electrostatic_potential, gradient_norm, laplacian, rdg, sign_lambda2_rho, and elf. Analytic producers also supply kinetic_energy_density, gradient_x, gradient_y, gradient_z, hessian_xx, hessian_xy, hessian_xz, hessian_yy, hessian_yz, and hessian_zz. rdg is the reduced density gradient. elf is the electron localization function. sign_lambda2_rho is density times the sign of the middle Hessian eigenvalue. density_floor uses electron/angstrom^3; kinetic_density is a flat C-order array in electron/angstrom^5. It overrides the producer’s positive kinetic density.
analyze_fields_at_points(self, /, kinds, points, *, density_floor=1e-12, atoms=None)
Section titled “analyze_fields_at_points(self, /, kinds, points, *, density_floor=1e-12, atoms=None)”Evaluate analytic density jets at coordinates in angstrom.
begin_independent_evaluations(self, /, atoms=None)
Section titled “begin_independent_evaluations(self, /, atoms=None)”Save one electronic reference for independent geometry evaluations.
calculate(self, /, atoms, properties=None, system_changes=None)
Section titled “calculate(self, /, atoms, properties=None, system_changes=None)”Calculate requested properties for an ASE or atomli Atoms object.
properties defaults to ["energy"]. system_changes is
accepted for ASE protocol compatibility; invalidation uses an
exact native state key that includes geometry, cell, PBC, and
electronic overrides.
calculation_required(self, /, atoms, properties)
Section titled “calculation_required(self, /, atoms, properties)”Report whether any requested property needs calculation.
The comparison uses the exact native state rather than ASE’s
caller-supplied system_changes list.
end_independent_evaluations(self, /)
Section titled “end_independent_evaluations(self, /)”Release the independent electronic reference.
estimate_memory(self, /, atoms=None, properties=None)
Section titled “estimate_memory(self, /, atoms=None, properties=None)”Estimate peak host RAM and device VRAM before running a calculation.
flip_atom_spins(self, /, atom_indices, atoms=None)
Section titled “flip_atom_spins(self, /, atom_indices, atoms=None)”Flip local spin polarization on atom_indices in-place in the retained state to seed a broken-symmetry (BS) calculation.
get_atomic_charges(self, /, atoms=None)
Section titled “get_atomic_charges(self, /, atoms=None)”Net atomic charges from the retained state, without a real-space grid.
get_basis_diagnostics(self, /, atoms=None)
Section titled “get_basis_diagnostics(self, /, atoms=None)”Inspect periodic basis conditioning on the CPU without running SCF.
get_basis_spaces(self, /)
Section titled “get_basis_spaces(self, /)”Actual retained overlap metadata. This method does not run SCF.
get_capabilities(self, /, atoms=None)
Section titled “get_capabilities(self, /, atoms=None)”Analytical capabilities for this geometry; never performs SCF.
get_density(self, /, points, *, spin_density=False, atoms=None)
Section titled “get_density(self, /, points, *, spin_density=False, atoms=None)”Evaluate electron or spin density at coordinates in angstrom.
get_dfpt_force_constants(self, /, supercell, atoms=None)
Section titled “get_dfpt_force_constants(self, /, supercell, atoms=None)”Image-resolved force constants in eV/angstrom**2 from primitive-cell monochromatic DFPT. Shape: (n_images, n_atoms, 3, n_atoms, 3).
get_dipole_moment(self, /, atoms=None)
Section titled “get_dipole_moment(self, /, atoms=None)”Molecular dipole in electron*angstrom, about the laboratory origin.
get_dos(self, /, width=0.1, window=None, npts=401, atoms=None)
Section titled “get_dos(self, /, width=0.1, window=None, npts=401, atoms=None)”Gaussian DOS from retained orbitals. Energies and window are relative to the Fermi level, in eV, matching ASE DOS.
get_eigenvalues(self, /, kpt=0, spin=0, atoms=None)
Section titled “get_eigenvalues(self, /, kpt=0, spin=0, atoms=None)”Orbital eigenvalues in eV for one spin and retained SCF k-point.
get_electronic_state(self, /, atoms=None, *, matrices=True)
Section titled “get_electronic_state(self, /, atoms=None, *, matrices=True)”Independent arrays with explicit spin/k/band axes; energies in eV.
get_energy_components(self, /, atoms=None)
Section titled “get_energy_components(self, /, atoms=None)”Named total, free, electronic, and nuclear energies in eV.
get_fermi_level(self, /, atoms=None)
Section titled “get_fermi_level(self, /, atoms=None)”Chemical potential or molecular frontier reference, in eV.
get_field(self, /, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)
Section titled “get_field(self, /, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)”Evaluate a field on a grid. Coordinates use angstrom.
get_field_at_points(self, /, points, kind='electron_density', *, spin=0, band=0, atoms=None)
Section titled “get_field_at_points(self, /, points, kind='electron_density', *, spin=0, band=0, atoms=None)”Evaluate electron_density, spin_density, electrostatic_potential, orbital_amplitude, or kinetic_energy_density at coordinates in angstrom.
get_forces(self, /, atoms=None, apply_constraint=None)
Section titled “get_forces(self, /, atoms=None, apply_constraint=None)”Return forces in eV/angstrom as a copied (n_atoms, 3) array.
When atoms is omitted, the last retained atomic state is used.
apply_constraint is accepted for ASE protocol compatibility;
ASE Atoms applies positional constraints around calculator calls.
get_gxtb_root_diagnostics(self, /, atoms=None)
Section titled “get_gxtb_root_diagnostics(self, /, atoms=None)”Retained fixed-geometry CPU g-xTB root certificate and selection work. Returns None before a protected calculation or for a mismatched geometry.
get_gxtb_scf_diagnostics(self, /, atoms=None)
Section titled “get_gxtb_scf_diagnostics(self, /, atoms=None)”Retained g-xTB GPU stopping evidence; never runs SCF. Returns None before calculation or for a different geometry/backend. Fock RMS is in Hartree and is not a returned-state accuracy bound. Missing terminal checks are None; evaluated checks include their norm and limit.
get_hessian(self, /, atoms=None)
Section titled “get_hessian(self, /, atoms=None)”Return the analytical Hessian in eV/angstrom**2.
The array is ASE-shaped (n_atoms, 3, n_atoms, 3). When
atoms is omitted, the last retained atomic state is used.
Configurations without analytical second derivatives raise an unsupported-operation error.
get_hessian_vector(self, /, direction, atoms=None)
Section titled “get_hessian_vector(self, /, direction, atoms=None)”Apply the analytical Hessian to a dimensionless (natoms, 3) direction. Returns eV/angstrom**2. No finite-difference fallback is permitted.
get_k_point_weights(self, /, atoms=None)
Section titled “get_k_point_weights(self, /, atoms=None)”get_magnetic_moments(self, /, atoms=None)
Section titled “get_magnetic_moments(self, /, atoms=None)”Atom-resolved physical magnetic moments (n_alpha - n_beta) from the retained state.
get_number_of_bands(self, /, atoms=None)
Section titled “get_number_of_bands(self, /, atoms=None)”get_number_of_spins(self, /, atoms=None)
Section titled “get_number_of_spins(self, /, atoms=None)”get_occupation_numbers(self, /, kpt=0, spin=0, atoms=None)
Section titled “get_occupation_numbers(self, /, kpt=0, spin=0, atoms=None)”get_overlap(self, /, atoms=None)
Section titled “get_overlap(self, /, atoms=None)”Copied overlap matrices with axes (kpoint, ao, ao), dimensionless.
get_pdos(self, /, grouping='atom', width=0.1, window=None, npts=401, atoms=None)
Section titled “get_pdos(self, /, grouping='atom', width=0.1, window=None, npts=401, atoms=None)”AO Mulliken-projected DOS grouped by atom or shell.
get_potential_energy(self, /, atoms=None, force_consistent=None)
Section titled “get_potential_energy(self, /, atoms=None, force_consistent=None)”Return potential energy in eV.
When atoms is omitted, the last retained atomic state is used.
force_consistent=True requests the ASE free_energy result.
get_property(self, /, name, atoms=None, allow_calculation=None)
Section titled “get_property(self, /, name, atoms=None, allow_calculation=None)”Return one named property, calculating it when necessary.
allow_calculation=False returns None when the current state
has no cached value. Unsupported names raise ASE’s
PropertyNotImplementedError when ASE is installed.
get_scf_diagnostics(self, /, atoms=None)
Section titled “get_scf_diagnostics(self, /, atoms=None)”Scalar convergence evidence. The orbital residual uses eV and the backend’s normalization; it is not an atomic force.
get_spin_contamination(self, /, atoms=None)
Section titled “get_spin_contamination(self, /, atoms=None)”Spin-expectation and broken-symmetry diagnostics (<S^2>, exact S(S+1), spin_contamination, nalpha, nbeta, sz).
get_stress(self, /, atoms=None, apply_constraint=None, voigt=None)
Section titled “get_stress(self, /, atoms=None, apply_constraint=None, voigt=None)”Return stress in eV/angstrom**3.
The default is ASE Voigt order [xx, yy, zz, yz, xz, xy].
Pass voigt=False for a copied symmetric (3, 3) array. When
atoms is omitted, the last retained atomic state is used.
apply_constraint is accepted for ASE protocol compatibility;
ASE Atoms applies cell constraints around calculator calls.
get_wavefunction(self, /, format='hdf5', atoms=None)
Section titled “get_wavefunction(self, /, format='hdf5', atoms=None)”Wavefunction file bytes. HDF5 supports molecules and PBC; Molden and WFN require a supported molecular orbital state.
make_rdm1(self, /, atoms=None)
Section titled “make_rdm1(self, /, atoms=None)”Copied AO density with axes (spin, kpoint, ao, ao). Restricted density is spin summed; CC uses its correlated analysis density.
read_checkpoint(self, /, path, atoms=None)
Section titled “read_checkpoint(self, /, path, atoms=None)”Load a compatible electronic seed and return its atoms.
read_wavefunction(self, /, path, atoms=None)
Section titled “read_wavefunction(self, /, path, atoms=None)”Import a compatible HDF5 SCF density as an initial guess.
reset(self, /)
Section titled “reset(self, /)”Clear cached results, retained atoms, and the native backend.
restore_independent_evaluation_state(self, /)
Section titled “restore_independent_evaluation_state(self, /)”Restore the common seed and invalidate observable caches.
todict(self, /)
Section titled “todict(self, /)”Return normalized constructor parameters as a new dictionary.
write_checkpoint(self, /, path, atoms=None)
Section titled “write_checkpoint(self, /, path, atoms=None)”Save an atomic native checkpoint with its model identity.
write_cube(self, /, path=Ellipsis, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)
Section titled “write_cube(self, /, path=Ellipsis, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)”Write a standard Cube file directly from the native state.
write_field(self, /, path=Ellipsis, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)
Section titled “write_field(self, /, path=Ellipsis, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)”Write Cube by default. An explicit .h5 path selects a standalone HDF5 field.
write_wavefunction(self, /, path=Ellipsis, format='hdf5', atoms=None)
Section titled “write_wavefunction(self, /, path=Ellipsis, format='hdf5', atoms=None)”DFTD3(method='PBE', version=None, *, device='cpu', adapter=None)
Section titled “DFTD3(method='PBE', version=None, *, device='cpu', adapter=None)”analyze_fields(self, /, kinds, *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, density_floor=1e-12, kinetic_density=None, charges=False, atoms=None)
Section titled “analyze_fields(self, /, kinds, *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, density_floor=1e-12, kinetic_density=None, charges=False, atoms=None)”Evaluate related fields from one retained state and one density grid. Kinds include electron_density, spin_density, orbital_amplitude, electrostatic_potential, gradient_norm, laplacian, rdg, sign_lambda2_rho, and elf. Analytic producers also supply kinetic_energy_density, gradient_x, gradient_y, gradient_z, hessian_xx, hessian_xy, hessian_xz, hessian_yy, hessian_yz, and hessian_zz. rdg is the reduced density gradient. elf is the electron localization function. sign_lambda2_rho is density times the sign of the middle Hessian eigenvalue. density_floor uses electron/angstrom^3; kinetic_density is a flat C-order array in electron/angstrom^5. It overrides the producer’s positive kinetic density.
analyze_fields_at_points(self, /, kinds, points, *, density_floor=1e-12, atoms=None)
Section titled “analyze_fields_at_points(self, /, kinds, points, *, density_floor=1e-12, atoms=None)”Evaluate analytic density jets at coordinates in angstrom.
begin_independent_evaluations(self, /, atoms=None)
Section titled “begin_independent_evaluations(self, /, atoms=None)”Save one electronic reference for independent geometry evaluations.
calculate(self, /, atoms, properties=None, system_changes=None)
Section titled “calculate(self, /, atoms, properties=None, system_changes=None)”Calculate requested properties for an ASE or atomli Atoms object.
properties defaults to ["energy"]. system_changes is
accepted for ASE protocol compatibility; invalidation uses an
exact native state key that includes geometry, cell, PBC, and
electronic overrides.
calculation_required(self, /, atoms, properties)
Section titled “calculation_required(self, /, atoms, properties)”Report whether any requested property needs calculation.
The comparison uses the exact native state rather than ASE’s
caller-supplied system_changes list.
end_independent_evaluations(self, /)
Section titled “end_independent_evaluations(self, /)”Release the independent electronic reference.
estimate_memory(self, /, atoms=None, properties=None)
Section titled “estimate_memory(self, /, atoms=None, properties=None)”Estimate peak host RAM and device VRAM before running a calculation.
flip_atom_spins(self, /, atom_indices, atoms=None)
Section titled “flip_atom_spins(self, /, atom_indices, atoms=None)”Flip local spin polarization on atom_indices in-place in the retained state to seed a broken-symmetry (BS) calculation.
get_atomic_charges(self, /, atoms=None)
Section titled “get_atomic_charges(self, /, atoms=None)”Net atomic charges from the retained state, without a real-space grid.
get_basis_diagnostics(self, /, atoms=None)
Section titled “get_basis_diagnostics(self, /, atoms=None)”Inspect periodic basis conditioning on the CPU without running SCF.
get_basis_spaces(self, /)
Section titled “get_basis_spaces(self, /)”Actual retained overlap metadata. This method does not run SCF.
get_capabilities(self, /, atoms=None)
Section titled “get_capabilities(self, /, atoms=None)”Analytical capabilities for this geometry; never performs SCF.
get_density(self, /, points, *, spin_density=False, atoms=None)
Section titled “get_density(self, /, points, *, spin_density=False, atoms=None)”Evaluate electron or spin density at coordinates in angstrom.
get_dfpt_force_constants(self, /, supercell, atoms=None)
Section titled “get_dfpt_force_constants(self, /, supercell, atoms=None)”Image-resolved force constants in eV/angstrom**2 from primitive-cell monochromatic DFPT. Shape: (n_images, n_atoms, 3, n_atoms, 3).
get_dipole_moment(self, /, atoms=None)
Section titled “get_dipole_moment(self, /, atoms=None)”Molecular dipole in electron*angstrom, about the laboratory origin.
get_dos(self, /, width=0.1, window=None, npts=401, atoms=None)
Section titled “get_dos(self, /, width=0.1, window=None, npts=401, atoms=None)”Gaussian DOS from retained orbitals. Energies and window are relative to the Fermi level, in eV, matching ASE DOS.
get_eigenvalues(self, /, kpt=0, spin=0, atoms=None)
Section titled “get_eigenvalues(self, /, kpt=0, spin=0, atoms=None)”Orbital eigenvalues in eV for one spin and retained SCF k-point.
get_electronic_state(self, /, atoms=None, *, matrices=True)
Section titled “get_electronic_state(self, /, atoms=None, *, matrices=True)”Independent arrays with explicit spin/k/band axes; energies in eV.
get_energy_components(self, /, atoms=None)
Section titled “get_energy_components(self, /, atoms=None)”Named total, free, electronic, and nuclear energies in eV.
get_fermi_level(self, /, atoms=None)
Section titled “get_fermi_level(self, /, atoms=None)”Chemical potential or molecular frontier reference, in eV.
get_field(self, /, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)
Section titled “get_field(self, /, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)”Evaluate a field on a grid. Coordinates use angstrom.
get_field_at_points(self, /, points, kind='electron_density', *, spin=0, band=0, atoms=None)
Section titled “get_field_at_points(self, /, points, kind='electron_density', *, spin=0, band=0, atoms=None)”Evaluate electron_density, spin_density, electrostatic_potential, orbital_amplitude, or kinetic_energy_density at coordinates in angstrom.
get_forces(self, /, atoms=None, apply_constraint=None)
Section titled “get_forces(self, /, atoms=None, apply_constraint=None)”Return forces in eV/angstrom as a copied (n_atoms, 3) array.
When atoms is omitted, the last retained atomic state is used.
apply_constraint is accepted for ASE protocol compatibility;
ASE Atoms applies positional constraints around calculator calls.
get_gxtb_root_diagnostics(self, /, atoms=None)
Section titled “get_gxtb_root_diagnostics(self, /, atoms=None)”Retained fixed-geometry CPU g-xTB root certificate and selection work. Returns None before a protected calculation or for a mismatched geometry.
get_gxtb_scf_diagnostics(self, /, atoms=None)
Section titled “get_gxtb_scf_diagnostics(self, /, atoms=None)”Retained g-xTB GPU stopping evidence; never runs SCF. Returns None before calculation or for a different geometry/backend. Fock RMS is in Hartree and is not a returned-state accuracy bound. Missing terminal checks are None; evaluated checks include their norm and limit.
get_hessian(self, /, atoms=None)
Section titled “get_hessian(self, /, atoms=None)”Return the analytical Hessian in eV/angstrom**2.
The array is ASE-shaped (n_atoms, 3, n_atoms, 3). When
atoms is omitted, the last retained atomic state is used.
Configurations without analytical second derivatives raise an unsupported-operation error.
get_hessian_vector(self, /, direction, atoms=None)
Section titled “get_hessian_vector(self, /, direction, atoms=None)”Apply the analytical Hessian to a dimensionless (natoms, 3) direction. Returns eV/angstrom**2. No finite-difference fallback is permitted.
get_k_point_weights(self, /, atoms=None)
Section titled “get_k_point_weights(self, /, atoms=None)”get_magnetic_moments(self, /, atoms=None)
Section titled “get_magnetic_moments(self, /, atoms=None)”Atom-resolved physical magnetic moments (n_alpha - n_beta) from the retained state.
get_number_of_bands(self, /, atoms=None)
Section titled “get_number_of_bands(self, /, atoms=None)”get_number_of_spins(self, /, atoms=None)
Section titled “get_number_of_spins(self, /, atoms=None)”get_occupation_numbers(self, /, kpt=0, spin=0, atoms=None)
Section titled “get_occupation_numbers(self, /, kpt=0, spin=0, atoms=None)”get_overlap(self, /, atoms=None)
Section titled “get_overlap(self, /, atoms=None)”Copied overlap matrices with axes (kpoint, ao, ao), dimensionless.
get_pdos(self, /, grouping='atom', width=0.1, window=None, npts=401, atoms=None)
Section titled “get_pdos(self, /, grouping='atom', width=0.1, window=None, npts=401, atoms=None)”AO Mulliken-projected DOS grouped by atom or shell.
get_potential_energy(self, /, atoms=None, force_consistent=None)
Section titled “get_potential_energy(self, /, atoms=None, force_consistent=None)”Return potential energy in eV.
When atoms is omitted, the last retained atomic state is used.
force_consistent=True requests the ASE free_energy result.
get_property(self, /, name, atoms=None, allow_calculation=None)
Section titled “get_property(self, /, name, atoms=None, allow_calculation=None)”Return one named property, calculating it when necessary.
allow_calculation=False returns None when the current state
has no cached value. Unsupported names raise ASE’s
PropertyNotImplementedError when ASE is installed.
get_scf_diagnostics(self, /, atoms=None)
Section titled “get_scf_diagnostics(self, /, atoms=None)”Scalar convergence evidence. The orbital residual uses eV and the backend’s normalization; it is not an atomic force.
get_spin_contamination(self, /, atoms=None)
Section titled “get_spin_contamination(self, /, atoms=None)”Spin-expectation and broken-symmetry diagnostics (<S^2>, exact S(S+1), spin_contamination, nalpha, nbeta, sz).
get_stress(self, /, atoms=None, apply_constraint=None, voigt=None)
Section titled “get_stress(self, /, atoms=None, apply_constraint=None, voigt=None)”Return stress in eV/angstrom**3.
The default is ASE Voigt order [xx, yy, zz, yz, xz, xy].
Pass voigt=False for a copied symmetric (3, 3) array. When
atoms is omitted, the last retained atomic state is used.
apply_constraint is accepted for ASE protocol compatibility;
ASE Atoms applies cell constraints around calculator calls.
get_wavefunction(self, /, format='hdf5', atoms=None)
Section titled “get_wavefunction(self, /, format='hdf5', atoms=None)”Wavefunction file bytes. HDF5 supports molecules and PBC; Molden and WFN require a supported molecular orbital state.
make_rdm1(self, /, atoms=None)
Section titled “make_rdm1(self, /, atoms=None)”Copied AO density with axes (spin, kpoint, ao, ao). Restricted density is spin summed; CC uses its correlated analysis density.
read_checkpoint(self, /, path, atoms=None)
Section titled “read_checkpoint(self, /, path, atoms=None)”Load a compatible electronic seed and return its atoms.
read_wavefunction(self, /, path, atoms=None)
Section titled “read_wavefunction(self, /, path, atoms=None)”Import a compatible HDF5 SCF density as an initial guess.
reset(self, /)
Section titled “reset(self, /)”Clear cached results, retained atoms, and the native backend.
restore_independent_evaluation_state(self, /)
Section titled “restore_independent_evaluation_state(self, /)”Restore the common seed and invalidate observable caches.
todict(self, /)
Section titled “todict(self, /)”Return normalized constructor parameters as a new dictionary.
write_checkpoint(self, /, path, atoms=None)
Section titled “write_checkpoint(self, /, path, atoms=None)”Save an atomic native checkpoint with its model identity.
write_cube(self, /, path=Ellipsis, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)
Section titled “write_cube(self, /, path=Ellipsis, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)”Write a standard Cube file directly from the native state.
write_field(self, /, path=Ellipsis, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)
Section titled “write_field(self, /, path=Ellipsis, kind='electron_density', *, shape=None, origin=None, axes=None, margin=2.0, spin=0, band=0, atoms=None)”Write Cube by default. An explicit .h5 path selects a standalone HDF5 field.
write_wavefunction(self, /, path=Ellipsis, format='hdf5', atoms=None)
Section titled “write_wavefunction(self, /, path=Ellipsis, format='hdf5', atoms=None)”DFTD4(*args, **kwargs)
Section titled “DFTD4(*args, **kwargs)”SumCalculator(calcs)
Section titled “SumCalculator(calcs)”calculate(self, /, atoms=None, properties=None, system_changes=None)
Section titled “calculate(self, /, atoms=None, properties=None, system_changes=None)”get_basis_spaces(self, /)
Section titled “get_basis_spaces(self, /)”Preserve electronic component metadata for relaxation and phonon checks.
get_forces(self, /, atoms=None)
Section titled “get_forces(self, /, atoms=None)”get_potential_energy(self, /, atoms=None, force_consistent=False)
Section titled “get_potential_energy(self, /, atoms=None, force_consistent=False)”get_property(self, /, name, atoms=None, allow_calculation=True)
Section titled “get_property(self, /, name, atoms=None, allow_calculation=True)”get_stress(self, /, atoms=None)
Section titled “get_stress(self, /, atoms=None)”reset(self, /)
Section titled “reset(self, /)”XTB(method='gfn2', charge=None, unpaired=None, device=None, adapter=None, *, gamma_exchange_radii=None, scf=None, solvent=None, solvation=None, wgxtb=None, require_convergence=True, root_protection=False, root_recovery_cycles=250, root_energy_threshold=1e-11, root_fock_threshold=1e-12, root_max_iterations=250)
Section titled “XTB(method='gfn2', charge=None, unpaired=None, device=None, adapter=None, *, gamma_exchange_radii=None, scf=None, solvent=None, solvation=None, wgxtb=None, require_convergence=True, root_protection=False, root_recovery_cycles=250, root_energy_threshold=1e-11, root_fock_threshold=1e-12, root_max_iterations=250)”Construct an XTB calculator.
An explicit device or process device setting takes precedence.
Otherwise, g-xTB selects an available hardware GPU.
GFN2-xTB and protected roots use their CPU paths.
Supplying device= explicitly keeps the native strict validation.
Periodic g-xTB requires gamma_exchange_radii=(Rd, Rc) in angstrom.
The radii stay fixed during geometry changes. Each cell must have a shortest
lattice translation greater than 2 * Rc. Converge both radii and the
explicit Gamma supercell size. Restricted bulk cells support CPU and GPU execution.
root_protection=True selects the fixed-geometry CPU-f64, zero-electronic-
temperature g-xTB root path. Its defaults reproduce the strict Li/graphite
qualification controls: 1e-11 Ha energy, 1e-12 Ha Fock, and a maximum of
250 primary and 250 completion/restart cycles. With recovery enabled, initial
acquisition first uses at most 32 SCF cycles, then bounded orbital recovery
when necessary. Hessian products and physical Fock work are counted separately.
A displaced continuation always restores its selected reference; it never
runs cold-root competition. The get_gxtb_root_diagnostics() result retains
initial history/work in reference_acquisition across independent restores.
Both the core and TB engine must support exact native geometry transport.
GFN2 solvation accepts solvent="water", solvation="alpb" (also
gbsa/cpcm and the corresponding *_cds models). A solvation dict uses
{"model": ..., "solvent": ...}. Unsupported methods raise.
The scf dict also accepts electronic_temperature_kelvin,
temperature_schedule_kelvin, mixer_damping, and initial_guess
(zero/sad/eeq/ceh), in addition to the existing stopping controls.
CCSD(basis='cc-pvdz', *, triples=False, kpts=(1, 1, 1), charge=None, unpaired=None, device=None, adapter=None, settings=None, frozen=None)
Section titled “CCSD(basis='cc-pvdz', *, triples=False, kpts=(1, 1, 1), charge=None, unpaired=None, device=None, adapter=None, settings=None, frozen=None)”Construct a CCSD or CCSD(T) calculator.
Periodic atoms use k-point CCSD. Molecular atoms use restricted or unrestricted CCSD according to the unpaired electron count. Density fitting and factorized integral contractions are enabled by default. The default orbital basis is cc-pVDZ. Basis data ships with the engine. An omitted device uses Atomli device selection and hardware GPU discovery.
Forces and Hessians use exact analytical CPU or GPU response.
Periodic forces, stress, and Hessians require settings={“density_fitting”: False}
so the FFT integral source can provide exact derivative inputs. Precomputed
periodic GDF derivative jets are not exposed by this calculator.
Molecular HF density guesses are reused across compatible geometries.
GPU execution keeps post-HF CC, triples, and coupled response on the device;
Gaussian integral preparation and the HF reference remain on the CPU.
Singular orbital response and unsupported density-fitting rank reductions
raise explicit errors.
Partial PBC is unavailable. All public energies use eV.
frozen accepts a core-orbital count, explicit zero-based MO indices,
or separate alpha/beta index lists. Selection is currently molecular-only.
Additional settings: mesh, density_fitting, auxiliary_basis, max_cycles, energy_tolerance_ev, amplitude_tolerance, hf_tolerance_ev, and precision. An omitted mesh uses the upstream basis and precision estimate.
HF(basis='def2-SVP', *, method='auto', density_fitting=False, auxiliary_basis=None, charge=None, unpaired=None, scf=None, device='cpu')
Section titled “HF(basis='def2-SVP', *, method='auto', density_fitting=False, auxiliary_basis=None, charge=None, unpaired=None, scf=None, device='cpu')”Construct native molecular RHF, UHF, or ROHF.
method='auto' selects RHF for singlets and UHF otherwise. Explicit
method='uhf' also supports unrestricted singlets. RHF and UHF expose
analytical forces, Hessians, and Hessian-vector products. ROHF exposes
energies and electronic analysis; analytical ROHF derivatives are unavailable.
The current standalone route uses CPU. An explicit GPU request raises. Public energies use eV, coordinates use angstrom, and dipoles use electron*angstrom. No finite-difference fallback is permitted.
MLIP(model: 'Union[str, Any]', runtime: 'str' = 'nequix', device: 'Optional[Any]' = None, *, adapter: 'Optional[Any]' = None, download: 'bool' = True, charge: 'Optional[float]' = None, unpaired: 'Optional[int]' = None, multiplicity: 'Optional[int]' = None)
Section titled “MLIP(model: 'Union[str, Any]', runtime: 'str' = 'nequix', device: 'Optional[Any]' = None, *, adapter: 'Optional[Any]' = None, download: 'bool' = True, charge: 'Optional[float]' = None, unpaired: 'Optional[int]' = None, multiplicity: 'Optional[int]' = None)”Construct an MLIP calculator.
model: Catalog id ("nequix-mp-1", "nequip-s", "equiformer", …)
or filesystem path to weights.
runtime: "nequix" (default), "nequip", "equiformer", or "hyff".
When model is a catalog id, the catalog runtime is used unless
runtime is set explicitly to a non-default value for path models.
device: Optional calculator override. When omitted, an explicit
process device override is inherited; otherwise MLIP uses a real GPU
exposed by Atomli’s production WGPU backend and falls back to native CPU
when no hardware adapter is usable. Accepted
strings are "cpu" and "gpu" ("wgpu" alias). A hardware
atomli.gpu.Adapter may be passed directly.
adapter: Optional physical WGPU adapter. Use an adapter returned by
atomli.gpu.adapters(), its selector string, an enumeration index, or
a unique case-insensitive name substring. PCI selectors such as
"pci:0000:61:00.0" are preferred on multi-GPU hosts.
download: When True, fetch missing catalog models (tako → GitHub).
charge: Total charge override for HyFF models (hyff-presto,
hyff-vivace, hyff-moderato). None reads atoms.info["charge"],
then the summed initial charges, then 0. Other runtimes raise.
unpaired: Unpaired-electron override for HyFF models; the spin
multiplicity is unpaired + 1. None reads atoms.info["unpaired"],
then the summed initial magnetic moments, then 0.
multiplicity: Alternative to unpaired (unpaired = multiplicity - 1).
Returns: The Rust MLIP calculator instance.
QC(*args: 'Any', download: 'bool' = True, **kwargs: 'Any')
Section titled “QC(*args: 'Any', download: 'bool' = True, **kwargs: 'Any')”Construct the native QC calculator.
Arguments follow the native DFT class, whose docstring documents the whole
surface. Device selection additionally uses Atomli’s shared resolver, so
device= or adapter= accepts atomli.gpu.Adapter objects and QC inherits
atomli.set_default_device(...) exactly like XTB/MLIP. This wrapper also
adds automatic SKALA 1.1 checkpoint delivery. With xc="SKALA-1.1"
and no skala_checkpoint, the pinned checkpoint is fetched once from
the model release and cached locally.
download: Whether a missing checkpoint may be fetched. Pass
False to require a cache hit. Ignored unless the checkpoint is
being resolved, so it never affects a non-SKALA functional or an
explicitly supplied skala_checkpoint.