Skip to content

qttools.wave_function_solver.superlu#

source module qttools.wave_function_solver.superlu

Classes

  • SuperLU Wave function solver using LU decomposition for solving.

source class SuperLU()

Bases : WFSolver

Wave function solver using LU decomposition for solving.

This solver uses the SuperLU on the CPU for facorization. Depending on the chosen array module, the solution phase is computed on the CPU or GPU.

Methods

  • solve Solves the sparse system a @ x = b using LU decomposition.

source method SuperLU.solve(a: sparse.spmatrix, b: NDArray)NDArray

Solves the sparse system a @ x = b using LU decomposition.

Parameters

  • a : sparse.spmatrix The sparse system matrix.

  • b : NDArray The right-hand side vector.

Returns

  • x : NDArray The solution vector.