tkwant.onebody.kernels.SparseBlas

class tkwant.onebody.kernels.SparseBlas(H0, W, args, double complex[:] psi_st=None)

SparseBlas(H0, W, args, double complex[:] psi_st=None) Evaluate the RHS of the Schrödinger equation using sparse blas.

Only available if tkwant has been built against a sparse BLAS library.

H0scipy.sparse.base

Hamiltonian at t=0 (including any boundary conditions).

Wcallable

Time-dependent part of the Hamiltonian. Typically the object returned by tkwant.system.extract_perturbation.

psi_stndarray, optional

The wavefunction of the initial eigenstate defined over the central system (if starting in an initial eigenstate).

H0int

Handle for a matrix inside the sparse blas library. The Hamiltonian at t=0.

Wcallable

Time-dependent part of the Hamiltonian. Typically the object returned by tkwant.system.extract_perturbation.

psi_starray of complex or None

The wavefunction of the initial eigenstate defined over the central system (if starting in an initial eigenstate).

sizeint

The size of the time-independent part of the Hamiltonian. This also sets the size of the solution vector.

Methods

rhs(self, const double complex[::1] psi, double complex[::1] dpsidt, double time)

Evaluate the RHS of the TDSE and store the result in dpsidt.

set_args(self, args)
set_params(self, params)

Attributes

nevals

‘int’

Type

nevals

size

‘int’

Type

size