qrunch.chemistry.qrackle.scf.orbital_rotation.orbital_rotation_preconditioners
Shifted Hessian inverses for orbital-rotation Davidson expansion.
Classes
Pseudo-canonical orbital-energy inverse in the occupied-virtual space. |
|
Shifted inverse of a scalar approximation to the orbital Hessian. |
- class OrbitalEnergyPreconditioner
Bases:
Generic[TSCFMatrix,TSCFVector,TMatrix,TVector],OrbitalStepPreconditioner[TSCFMatrix],OccupiedVirtualBlockPreconditioner[TSCFMatrix]Pseudo-canonical orbital-energy inverse in the occupied-virtual space.
- __init__(module: SCFMatrixModuleProtocol[TSCFMatrix, TSCFVector, TMatrix, TVector], orthonormal_fock: TSCFMatrix, orthonormal_density: TSCFMatrix, orbital_occupation: OrbitalOccupation, *, denominator_floor: float = 0.01) None
Build the pseudo-canonical basis whose orbital gaps define the inverse.
The basis is owned by the preconditioner and released by
free().- Parameters:
module (SCFMatrixModuleProtocol[TSCFMatrix, TSCFVector, TMatrix, TVector]) – SCF matrix module.
orthonormal_fock (TSCFMatrix) – Reference Fock matrix in the orthonormal basis.
orthonormal_density (TSCFMatrix) – Reference determinant density in the orthonormal basis.
orbital_occupation (OrbitalOccupation) – Electron occupation giving the number of occupied orbitals.
denominator_floor (float) – Minimum absolute shifted orbital-energy denominator.
- Return type:
None
- apply(residual: TSCFMatrix, shift: float) TSCFMatrix
Apply the shifted inverse and remove redundant orbital rotations.
The antisymmetric result is \(\tfrac{1}{2}(B - B^{T})\) for the virtual-occupied block \(B\). The factor of one half is harmless, because the Davidson solver normalizes each new direction.
- Parameters:
residual (TSCFMatrix) – Antisymmetric Davidson residual in the orthonormal basis.
shift (float) – Augmented-Hessian level shift.
- Return type:
TSCFMatrix
- apply_to_occupied_virtual_block(block: TSCFMatrix, shift: float) TSCFMatrix
Divide the compact representation in
basisby the shifted orbital-energy gaps.- Parameters:
block (TSCFMatrix) – Compact occupied-virtual representation of a Davidson residual.
shift (float) – Level shift subtracted from the orbital-energy gaps.
- Return type:
TSCFMatrix
- property basis: OccupiedVirtualBasis[TSCFMatrix, TSCFVector, TMatrix, TVector]
Pseudo-canonical basis giving the compact representation the inverse acts on.
- property denominator_floor: float
Minimum absolute shifted orbital-energy denominator.
- free() None
Release the basis without freeing the reference inputs.
- Return type:
None
- class ScalarDiagonalPreconditioner
Bases:
Generic[TSCFMatrix,TSCFVector,TMatrix,TVector],OrbitalStepPreconditioner[TSCFMatrix]Shifted inverse of a scalar approximation to the orbital Hessian.
- __init__(module: SCFMatrixModuleProtocol[TSCFMatrix, TSCFVector, TMatrix, TVector], diagonal_estimate: float) None
Store the scalar Hessian diagonal used for Davidson expansion.
- Parameters:
module (SCFMatrixModuleProtocol[TSCFMatrix, TSCFVector, TMatrix, TVector]) – SCF matrix module.
diagonal_estimate (float) – Scalar estimate of the Hessian diagonal.
- Return type:
None
- apply(residual: TSCFMatrix, shift: float) TSCFMatrix
Return a new residual matrix scaled by the inverse shifted diagonal.
- Parameters:
residual (TSCFMatrix) – Antisymmetric Davidson residual in the orthonormal basis.
shift (float) – Augmented-Hessian level shift.
- Return type:
TSCFMatrix