qrunch.chemistry.qrackle.scf.initial_guess.initial_guess_core
Initial density guess from the core Hamiltonian.
Classes
Compute an initial density matrix from the core Hamiltonian guess. |
|
Builder for |
- class CoreHamiltonianInitialDensity
Bases:
Generic[TSCFMatrix,TSCFVector,TMatrix,TVector],InitialDensityProtocol[TSCFMatrix,TSCFVector,TMatrix,TVector]Compute an initial density matrix from the core Hamiltonian guess.
Diagonalizes the core Hamiltonian in the orthonormal basis via the Roothaan-Hall solver, then constructs the AO density matrix from the lowest-energy molecular orbitals:
\[D = C_{\mathrm{occ}} C_{\mathrm{occ}}^T\]- __init__(scf_matrix_module: SCFMatrixModuleProtocol[TSCFMatrix, TSCFVector, TMatrix, TVector], roothaan_hall_solver: RoothaanHallSolver[TSCFMatrix, TSCFVector, TMatrix, TVector] | None = None) None
Initialise the initial density builder.
- Parameters:
scf_matrix_module (SCFMatrixModuleProtocol[TSCFMatrix, TSCFVector, TMatrix, TVector]) – SCF matrix module for algebraic operations.
roothaan_hall_solver (RoothaanHallSolver[TSCFMatrix, TSCFVector, TMatrix, TVector] | None) – Solver for the Roothaan-Hall eigenvalue problem.
- Return type:
None
- compute(molecular_configuration: MolecularConfiguration, core_hamiltonian: TSCFMatrix, lowdin_orthogonalizer: TSCFMatrix) TSCFMatrix
Compute the initial AO density matrix from the core Hamiltonian.
- Parameters:
molecular_configuration (MolecularConfiguration) – The molecular configuration.
core_hamiltonian (TSCFMatrix) – The core Hamiltonian matrix in the AO basis.
lowdin_orthogonalizer (TSCFMatrix) – The Lowdin orthogonalizer \(S^{-1/2}\).
- Return type:
TSCFMatrix
- class CoreHamiltonianInitialDensityBuilder
Bases:
InitialDensityBuilderProtocolBuilder for
CoreHamiltonianInitialDensity.- __init__(*args, **kwargs)
- create_initial_density_builder(scf_matrix_module: SCFMatrixModuleProtocol[TSCFMatrix, TSCFVector, TMatrix, TVector], overlap_calculator: OverlapCalculatorProtocol[TMatrix, TVector], kinetic_calculator: KineticCalculatorProtocol[TMatrix, TVector], nuclear_attraction_calculator: NuclearAttractionCalculatorProtocol[TMatrix, TVector]) CoreHamiltonianInitialDensity[TSCFMatrix, TSCFVector, TMatrix, TVector]
Create a CoreHamiltonianInitialDensity instance.
- Parameters:
scf_matrix_module (SCFMatrixModuleProtocol[TSCFMatrix, TSCFVector, TMatrix, TVector]) – SCF matrix module (restricted or unrestricted).
overlap_calculator (OverlapCalculatorProtocol[TMatrix, TVector]) – Overlap matrix calculator.
kinetic_calculator (KineticCalculatorProtocol[TMatrix, TVector]) – Kinetic energy matrix calculator.
nuclear_attraction_calculator (NuclearAttractionCalculatorProtocol[TMatrix, TVector]) – Nuclear attraction matrix calculator.
- Return type:
CoreHamiltonianInitialDensity[TSCFMatrix, TSCFVector, TMatrix, TVector]