Skip to content

qsym2

Attributes

PySlaterDeterminant module-attribute

Classes

PySlaterDeterminantReal

Python-exposed structure to marshall real Slater determinant information between Rust and Python.

Parameters:

  • structure_constraint

    (PyStructureConstraint) –

    The structure constraint applied to the coefficients of the determinant.

  • complex_symmetric

    (bool) –

    A boolean indicating if inner products involving this determinant are complex-symmetric.

  • coefficients

    (Sequence[Py2DArray_f64]) –

    The real coefficient matrices for the molecular orbitals of this determinant, one for each spin space.

  • occupations

    (Sequence[Py1DArray_f64]) –

    The occupation arrays for the molecular orbitals, each of which is a one-dimensional array for each spin space.

  • threshold

    (float) –

    The threshold for comparisons.

  • mo_energies

    (Sequence[Py1DArray_f64] | None, default: None ) –

    The optional real molecular orbital energy arrays, each of which is a one-dimensional array for each spin space.

  • energy

    (float | None, default: None ) –

    The optional real determinantal energy.

Attributes

complex_symmetric instance-attribute
Python
complex_symmetric: bool

Boolean indicating if inner products involving this determinant are complex-symmetric.

coefficients instance-attribute
Python
coefficients: list[Py2DArray_f64]

The real coefficient matrices for the molecular orbitals of this determinant, one for each spin space.

occupations instance-attribute
Python
occupations: list[Py1DArray_f64]

The occupation arrays for the molecular orbitals, each of which is a one-dimensional array for each spin space.

threshold instance-attribute
Python
threshold: float

The threshold for comparisons.

mo_energies instance-attribute
Python
mo_energies: list[Py1DArray_f64] | None

The real molecular orbital energy arrays, if any, each of which is a one-dimensional array for each spin space.

energy instance-attribute
Python
energy: float | None

The real determinantal energy, if any.

Functions

PySlaterDeterminantComplex

Python-exposed structure to marshall complex Slater determinant information between Rust and Python.

Parameters:

  • structure_constraint

    (PyStructureConstraint) –

    The structure constraint applied to the coefficients of the determinant.

  • complex_symmetric

    (bool) –

    A boolean indicating if inner products involving this determinant are complex-symmetric.

  • coefficients

    (Sequence[Py2DArray_c128]) –

    The complex coefficient matrices for the molecular orbitals of this determinant, one for each spin space.

  • occupations

    (Sequence[Py1DArray_f64]) –

    The occupation arrays for the molecular orbitals, each of which is a one-dimensional array for each spin space.

  • threshold

    (float) –

    The threshold for comparisons.

  • mo_energies

    (Sequence[Py1DArray_c128] | None, default: None ) –

    The optional complex molecular orbital energy arrays, each of which is a one-dimensional array for each spin space.

  • energy

    (complex | None, default: None ) –

    The optional complex determinantal energy.

Attributes

complex_symmetric instance-attribute
Python
complex_symmetric: bool

Boolean indicating if inner products involving this determinant are complex-symmetric.

coefficients instance-attribute
Python
coefficients: list[Py2DArray_c128]

The complex coefficient matrices for the molecular orbitals of this determinant, one for each spin space.

occupations instance-attribute
Python
occupations: list[Py1DArray_f64]

The occupation arrays for the molecular orbitals, each of which is a one-dimensional array for each spin space.

threshold instance-attribute
Python
threshold: float

The threshold for comparisons.

mo_energies instance-attribute
Python
mo_energies: list[Py1DArray_c128] | None

The complex molecular orbital energy arrays, if any, each of which is a one-dimensional array for each spin space.

energy instance-attribute
Python
energy: float | None

The complex determinantal energy, if any.

Functions

PySlaterDeterminantRepAnalysisResult

Python-exposed structure storing the results of Slater determinant representation analysis.

Attributes

group instance-attribute
Python
group: str

The group used for the representation analysis.

determinant_symmetry instance-attribute
Python
determinant_symmetry: str | None

The deduced overall symmetry of the determinant.

mo_symmetries instance-attribute
Python
mo_symmetries: list[list[str | None]] | None

The deduced symmetries of the molecular orbitals constituting the determinant, if required.

determinant_density_symmetries instance-attribute
Python
determinant_density_symmetries: list[tuple[str, str | None]] | None

The deduced symmetries of the various densities constructible from the determinant, if required. In each tuple, the first element gives a description of the density corresponding to the symmetry result.

mo_density_symmetries instance-attribute
Python
mo_density_symmetries: list[list[str | None]] | None

The deduced symmetries of the total densities of the molecular orbitals constituting the determinant, if required.

Functions

rep_analyse_slater_determinant

Python-exposed function to perform representation symmetry analysis for real and complex Slater determinants.

The result is also logged via the qsym2-output logger at the INFO level.

If symmetry_transformation_kind includes spin transformation, the provided determinant will be augmented to generalised spin constraint automatically.

Parameters:

  • inp_sym

    (str) –

    A path to the QSym2FileType::Sym file containing the symmetry-group detection result for the system. This will be used to construct abstract groups and character tables for representation analysis.

  • pydet

    (PySlaterDeterminant) –

    A Python-exposed Slater determinant whose coefficients are of type float64 or complex128.

  • pybaos

    (Sequence[PyBasisAngularOrder]) –

    Python-exposed structures containing basis angular order information, one for each explicit component per coefficient matrix.

  • integrality_threshold

    (float) –

    The threshold for verifying if subspace multiplicities are integral.

  • linear_independence_threshold

    (float) –

    The threshold for determining the linear independence subspace via the non-zero eigenvalues of the orbit overlap matrix.

  • use_magnetic_group

    (MagneticSymmetryAnalysisKind | None) –

    An option indicating if the magnetic group is to be used for symmetry analysis, and if so, whether unitary representations or unitary-antiunitary corepresentations should be used.

  • use_double_group

    (bool) –

    A boolean indicating if the double group of the prevailing symmetry group is to be used for representation analysis instead.

  • use_cayley_table

    (bool) –

    A boolean indicating if the Cayley table for the group, if available, should be used to speed up the calculation of orbit overlap matrices.

  • symmetry_transformation_kind

    (SymmetryTransformationKind) –

    An enumerated type indicating the type of symmetry transformations to be performed on the origin determinant to generate the orbit. If this contains spin transformation, the determinant will be augmented to generalised spin constraint automatically.

  • eigenvalue_comparison_mode

    (EigenvalueComparisonMode) –

    An enumerated type indicating the mode of comparison of orbit overlap eigenvalues with the specified linear_independence_threshold.

  • sao

    (Py2DArray_f64 | Py2DArray_c128) –

    The atomic-orbital overlap matrix whose elements are of type float64 or complex128.

  • sao_h

    (Py2DArray_f64 | Py2DArray_c128 | None, default: None ) –

    The optional complex-symmetric atomic-orbital overlap matrix whose elements are of type float64 or complex128. This is required if antiunitary symmetry operations are involved.

  • sao_spatial_4c

    (Py4DArray_f64 | Py4DArray_c128 | None, default: None ) –

    The optional atomic-orbital four-centre overlap matrix whose elements are of type float64 or complex128.

  • sao_spatial_4c_h

    (Py4DArray_f64 | Py4DArray_c128 | None, default: None ) –

    The optional complex-symmetric atomic-orbital four-centre overlap matrix whose elements are of type float64 or complex128. This is required if antiunitary symmetry operations are involved.

  • analyse_mo_symmetries

    (bool, default: True ) –

    A boolean indicating if the symmetries of individual molecular orbitals are to be analysed.

  • analyse_mo_symmetry_projections

    (bool, default: True ) –

    A boolean indicating if the symmetry projections of individual molecular orbitals are to be analysed.

  • analyse_mo_mirror_parities

    (bool, default: False ) –

    A boolean indicating if the mirror parities of individual molecular orbitals are to be printed.

  • analyse_density_symmetries

    (bool, default: False ) –

    A boolean indicating if the symmetries of densities are to be analysed.

  • write_overlap_eigenvalues

    (bool, default: True ) –

    A boolean indicating if the eigenvalues of the determinant orbit overlap matrix are to be written to the output.

  • write_character_table

    (bool, default: True ) –

    A boolean indicating if the character table of the prevailing symmetry group is to be printed out.

  • infinite_order_to_finite

    (int | None, default: None ) –

    The finite order with which infinite-order generators are to be interpreted to form a finite subgroup of the prevailing infinite group. This finite subgroup will be used for symmetry analysis.

  • angular_function_integrality_threshold

    (float, default: 1e-07 ) –

    The threshold for verifying if subspace multiplicities are integral for the symmetry analysis of angular functions.

  • angular_function_linear_independence_threshold

    (float, default: 1e-07 ) –

    The threshold for determining the linear independence subspace via the non-zero eigenvalues of the orbit overlap matrix for the symmetry analysis of angular functions.

  • angular_function_max_angular_momentum

    (int, default: 2 ) –

    The maximum angular momentum order to be used in angular function symmetry analysis.

Returns: