qrunch.chemistry.qrackle.scf.steppers.spin_symmetry_breaking
Spin-symmetry breaking for unrestricted SCF calculations.
Closed-shell systems run with an unrestricted SCF stepper (UHF) can converge to a spin-symmetric stationary point that is actually a saddle point (the classic RHF -> UHF instability). Breaking the spin symmetry allows the optimizer to relax to a lower-energy broken-symmetry solution (if one exists).
Functions
Break spin symmetry along the genuine orbital-Hessian instabilities. |
- build_symmetry_broken_density_from_stability(scf_matrix_module: UnrestrictedMatrixModule[TMatrix, TVector], fock_builder: FockBuilderProtocol[UnrestrictedMatrix[TMatrix], UnrestrictedVector[TVector], TMatrix, TVector], converged_density: UnrestrictedMatrix[TMatrix], core_hamiltonian: UnrestrictedMatrix[TMatrix], overlap_matrix: UnrestrictedMatrix[TMatrix], lowdin_orthogonalizer: UnrestrictedMatrix[TMatrix], molecular_configuration: MolecularConfiguration, orbital_occupation: OrbitalOccupation, rotation_angle: float = 0.7853981633974483, number_of_modes: int = 4, negative_curvature_threshold: float = 0.0001) UnrestrictedMatrix[TMatrix] | None
Break spin symmetry along the genuine orbital-Hessian instabilities.
This performs a cheap stability analysis of the orbital Hessian at the converged spin-symmetric density (using the exact response Hessian) and rotates the alpha and beta densities against each other along every negative-curvature eigenvector. Because it follows the true descent directions – and, for a degenerate instability such as stretched N2’s two \(\pi\) bonds, all of them at once – it lands much closer to the broken-symmetry minimum than a single generic mixing.
The trial directions fed to the analysis are spin-flip (triplet) rotations (\(X_{\alpha} = -X_{\beta}\)), the block into which the RHF -> UHF instability falls; a spin-symmetric (singlet) trial set would be orthogonal to it and could never detect it.
Returns
Nonewhen no instability is found (the solution is a genuine minimum), so the caller can keep the symmetric density.- Parameters:
scf_matrix_module (UnrestrictedMatrixModule[TMatrix, TVector]) – The unrestricted SCF matrix module.
fock_builder (FockBuilderProtocol[UnrestrictedMatrix[TMatrix], UnrestrictedVector[TVector], TMatrix, TVector]) – The Fock builder providing the exact electronic response.
converged_density (UnrestrictedMatrix[TMatrix]) – The converged spin-symmetric AO density.
core_hamiltonian (UnrestrictedMatrix[TMatrix]) – The core Hamiltonian \(h = T + V_{\mathrm{nuc}}\).
overlap_matrix (UnrestrictedMatrix[TMatrix]) – The AO overlap matrix \(S\).
lowdin_orthogonalizer (UnrestrictedMatrix[TMatrix]) – The Lowdin orthogonalizer \(L = S^{-1/2}\).
molecular_configuration (MolecularConfiguration) – The molecular configuration.
orbital_occupation (OrbitalOccupation) – Electron occupation.
rotation_angle (float) – Rotation angle applied along each negative-curvature mode (radians).
number_of_modes (int) – Number of lowest Hessian eigenpairs to inspect.
negative_curvature_threshold (float) – An eigenvalue below
-thresholdcounts as an instability.
- Return type:
UnrestrictedMatrix[TMatrix] | None