qrunch.chemistry.subspace_diagonalization.slater_condon_adapter
Internal adapters between second-quantized Hamiltonians and Slater-Condon inputs.
Functions
Expand a paired determinant into identical alpha and beta occupations. |
|
Collapse identical alpha and beta occupations into a paired determinant. |
- paired_determinant_to_slater_determinant(determinant: int, number_of_spatial_orbitals: int) int
Expand a paired determinant into identical alpha and beta occupations.
- Parameters:
determinant (int) – Paired determinant with one bit per spatial orbital.
number_of_spatial_orbitals (int) – Number of spatial orbitals.
- Return type:
int
- slater_determinant_to_paired_determinant(determinant: int, number_of_spatial_orbitals: int) int
Collapse identical alpha and beta occupations into a paired determinant.
- Parameters:
determinant (int) – Slater determinant with alpha bits followed by beta bits.
number_of_spatial_orbitals (int) – Number of spatial orbitals in each spin block.
- Return type:
int