tkwant.onebody.kernels.Scipy¶
-
class
tkwant.onebody.kernels.Scipy(self, H0, W, params, psi_st=None)¶ Evaluate the RHS of the Schrödinger equation using scipy sparse.
- Parameters
H0 (
scipy.sparse.base) – Hamiltonian att=0(including any boundary conditions).W (callable) – Time-dependent part of the Hamiltonian. Typically the object returned by tkwant.system.extract_perturbation.
params (dict) – Extra arguments to pass to the system Hamiltonian excluding time.
psi_st (array of complex, optional) – The wavefunction of the initial eigenstate defined over the central system (if starting in an initial eigenstate).
-
H0¶ Hamiltonian at
t=0(including any boundary conditions).
-
W¶ Time-dependent part of the Hamiltonian. Typically the object returned by tkwant.system.extract_perturbation.
- Type
callable
-
psi_st¶ The wavefunction of the initial eigenstate defined over the central system (if starting in an initial eigenstate).
- Type
array of complex or None
-
size¶ The size of the time-independent part of the Hamiltonian. This also sets the size of the solution vector.
- Type
Methods
-
rhs(self, const double complex[:] psi, double complex[:] dpsidt, double time)¶ Evaluate the RHS of the TDSE and store the result in dpsidt.
-
set_params(self, params)¶
Attributes
-
nevals¶ ‘int’
- Type
nevals
-
size¶ ‘int’
- Type
size
