tkwant.onebody.kernels.Scipy¶
-
class
tkwant.onebody.kernels.Scipy(self, H0, W, psi_st=None, work=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.
psi_st (array of complex, optional) – The wavefunction of the initial eigenstate defined over the central system (if starting in an initial eigenstate).
work (
ndarrayof complex, optional) – Workarray of sizeH0.shape[0]for performance and memory optimization.
-
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
Methods
-
rhs(self, energy=None)¶
-
set_W(self, W)¶ Set the time dependent perturbation W(t)
Attributes
-
nevals¶ ‘int’
- Type
nevals
-
size¶ ‘int’
- Type
size
