qttools.wave_function_solver.solver#
source module qttools.wave_function_solver.solver
Classes
-
WFSolver — Abstract base class for wave function solvers.
Bases : ABC
Abstract base class for wave function solvers.
Methods
-
solve — Solves the sparse linear system a @ x = b.
source method WFSolver.solve(a: sparse.spmatrix, b: NDArray) → NDArray
Solves the sparse linear system a @ x = b.
Parameters
-
a : sparse.spmatrix — The sparse system matrix.
-
b : NDArray — The right-hand side vector.
Returns
-
x : NDArray — The solution vector.