qrunch.chemistry.qrackle.scf.orbital_occupation

Electron occupation information for SCF calculations.

Functions

gradient_scale_factor(*, total_orbitals, ...)

Compute the scale factor for the size-consistent RMS SCF gradient.

Classes

OrbitalOccupation

Number of occupied orbitals per spin channel.

class OrbitalOccupation

Bases: DataclassPublicAPI

Number of occupied orbitals per spin channel.

__init__(*, number_of_alpha_electrons: int, number_of_beta_electrons: int) → None
Parameters:
  • number_of_alpha_electrons (int)

  • number_of_beta_electrons (int)

Return type:

None

classmethod from_molecular_configuration(molecular_configuration: MolecularConfiguration) → OrbitalOccupation

Create an OrbitalOccupation instance from a MolecularConfiguration.

Parameters:

molecular_configuration (MolecularConfiguration)

Return type:

OrbitalOccupation

property is_closed_shell: bool

Whether alpha and beta occupations are equal.

number_of_alpha_electrons: int
number_of_beta_electrons: int
property total_electrons: int

Total number of electrons.

gradient_scale_factor(*, total_orbitals: int, orbital_occupation: OrbitalOccupation, is_restricted: bool) → float

Compute the scale factor for the size-consistent RMS SCF gradient.

Parameters:
  • total_orbitals (int) – Number of spatial orbitals.

  • orbital_occupation (OrbitalOccupation) – Occupation of each spin channel.

  • is_restricted (bool) – Whether the density represents a restricted calculation.

Return type:

float