qsym2
¶
Attributes¶
PyPureSpinorOrder
module-attribute
¶
PyShellOrder
module-attribute
¶
PyStructureConstraint
module-attribute
¶
PyStructureConstraint: TypeAlias = PySpinConstraint | PySpinOrbitCoupled
Classes¶
ShellType
¶
Bases: Enum
Python-exposed enumerated type indicating the shell type.
Attributes¶
SpinorFermion
class-attribute
instance-attribute
¶
Variant for a spinor shell corresponding to a fermion without any additional balance symmetries.
SpinorFermionKineticBalance
class-attribute
instance-attribute
¶
Variant for a spinor shell corresponding to a fermion with the kinetic balance symmetry due to .
SpinorAntifermion
class-attribute
instance-attribute
¶
Variant for a spinor shell corresponding to an antifermion without any additional balance symmetries.
SpinorAntifermionKineticBalance
class-attribute
instance-attribute
¶
Variant for a spinor shell describing an antifermion with the kinetic balance symmetry due to .
PyBasisAngularOrder
¶
PyBasisAngularOrder(
basis_atoms: Sequence[
tuple[str, Sequence[tuple[int, ShellType, PyShellOrder]]]
],
)
Python-exposed structure to marshall basis angular order information between Python and Rust.
Parameters:
-
(basis_atoms¶Sequence[tuple[str, Sequence[tuple[int, ShellType, PyShellOrder]]]]) –A vector of tuples, each of which provides information for one basis atom in the form
(element, basis_shells). Here:elementis a string giving the element symbol of the atom, andbasis_shellsis a vector of tuples, each of which provides information for one basis shell on the atom in the form(angmom, shelltype, order). Here:angmomis an integer specifying the angular momentum of the shell, the meaning of which depends on the shell type,shelltypeis an enumerated type with possible variantsShellType.Pure,ShellType.Cartesian,ShellType.Spinor, andShellType.SpinorKineticBalanceindicating the type of the shell, andorderspecifies how the functions in the shell are ordered:- if
shelltypeisShellType.Cartesian,ordercan beNonefor lexicographic order, or a list of tuples(lx, ly, lz)specifying a custom order for the Cartesian functions wherelx,ly, andlzare the -, -, and -exponents, respectively; - if
shelltypeisShellType.Pure,ShellType.SpinorFermion,SpinorFermionKineticBalance,ShellType.SpinorAntifermion, orShellType.SpinorAntifermionKineticBalance,orderis a tuple of two values: the first can betruefor increasing- order,falsefor decreasing- order, or a list of values for custom order, and the second is a boolean indicating whether the spatial parts of the functions in the shell are even with respect to spatial inversion.
- if
Functions¶
from_qchem_archive
classmethod
¶
from_qchem_archive(filename: str) -> list[PyBasisAngularOrder]
Extracts basis angular order information from a Q-Chem HDF5 archive file.
A summary showing how the PyBasisAngularOrder objects map onto the Q-Chem calculations in
the HDF5 archive file is also logged at the INFO level.
Parameters:
Returns:
-
list[PyBasisAngularOrder]–A sequence of
PyBasisAngularOrderobjects, one for each Q-Chem calculation found in the HDF5 archive file.
PySpinConstraint
¶
Bases: Enum
Python-exposed enumerated type to marshall basis spin constraint information between Rust and Python.
Attributes¶
Restricted
class-attribute
instance-attribute
¶
Variant for restricted spin constraint. Only two spin spaces are exposed.
Unrestricted
class-attribute
instance-attribute
¶
Variant for unrestricted spin constraint. Only two spin spaces arranged in decreasing- order (i.e. ) are exposed.
Generalised
class-attribute
instance-attribute
¶
Variant for generalised spin constraint. Only two spin spaces arranged in decreasing- order (i.e. ) are exposed.
PySpinOrbitCoupled
¶
Bases: Enum
Python-exposed enumerated type to marshall basis spin--orbit-coupled layout in the coupled treatment of spin and spatial degrees of freedom between Rust and Python.
PyBasisShellContraction
¶
PyBasisShellContraction(
basis_shell: tuple[int, ShellType, PyShellOrder],
primitives: Sequence[tuple[float, float]],
cart_origin: tuple[float, float, float],
k: tuple[float, float, float] | None,
)
Python-exposed structure to marshall basis shell contraction information between Rust and Python.
Parameters:
-
(basis_shell¶tuple[int, ShellType, PyShellOrder]) –A tuple which provides information for one basis shell on the atom in the form
(angmom, shelltype, order). Here:angmomis an integer specifying the angular momentum of the shell, the meaning of which depends on the shell type,shelltypeis an enumerated type with possible variantsShellType.Pure,ShellType.Cartesian,ShellType.Spinor, andShellType.SpinorKineticBalanceindicating the type of the shell, andorderspecifies how the functions in the shell are ordered:- if
shelltypeisShellType.Cartesian,ordercan beNonefor lexicographic order, or a list of tuples(lx, ly, lz)specifying a custom order for the Cartesian functions wherelx,ly, andlzare the -, -, and -exponents, respectively; - if
shelltypeisShellType.Pure,ShellType.SpinorFermion,SpinorFermionKineticBalance,ShellType.SpinorAntifermion, orShellType.SpinorAntifermionKineticBalance,orderis a tuple of two values: the first can betruefor increasing- order,falsefor decreasing- order, or a list of values for custom order, and the second is a boolean indicating whether
- if
-
(primitives¶Sequence[tuple[float, float]]) –A list of tuples, each of which contains the exponent and the contraction coefficient of a Gaussian primitive in this shell.
-
(cart_origin¶tuple[float, float, float]) –A fixed-size list of length 3 containing the Cartesian coordinates of the origin of this shell.
-
(k¶tuple[float, float, float] | None) –An optional fixed-size list of length 3 containing the Cartesian components of the vector of this shell.