Skip to content

spectral#

Includes a spectral solver for the open boundary conditions.

Classes:

  • Spectral

    Spectral open-boundary condition solver.

Spectral #

Spectral(nevp: NEVP, block_sections: int = 1, min_decay: float = 0.001, max_decay: float = 6.9, num_ref_iterations: int = 2, min_propagation: float = 0.01, residual_tolerance: float = 0.001, residual_normalization: bool = True, warning_threshold: float = 0.1, eta_decay: float = 1e-14)

Bases: OBCSolver

Spectral open-boundary condition solver.

This technique of obtaining the surface Green's function is based on the solution of a non-linear eigenvalue problem (NEVP), defined via the system-matrix blocks in the semi-infinite contacts.

Those eigenvalues corresponding to reflected modes are filtered out, so that only the ones that correspond to modes that propagate into the leads or those that decay away from the system are retained.

The surface Green's function is then calculated from these filtered eigenvalues and eigenvectors.

Parameters:

  • nevp (NEVP) –

    The non-linear eigenvalue problem solver to use.

  • block_sections (int, default: 1 ) –

    The number of sections to split the periodic matrix layer into.

  • min_decay (float, default: 0.001 ) –

    The decay threshold after which modes are considered to be evanescent.

  • max_decay (float, default: 6.9 ) –

    The maximum decay to consider for evanescent modes. The default is 6.9 which corresponds to 1000 in the eigenvalues.

  • num_ref_iterations (int, default: 2 ) –

    The number of refinement iterations to perform on the surface Green's function.

  • min_propagation (float, default: 0.01 ) –

    The minimum ratio between the real and imaginary part of the group velocity of a mode. This ratio is used to determine how clearly a mode propagates.

  • residual_tolerance (float, default: 0.001 ) –

    The tolerance for the residual of the NEVP.

  • residual_normalization (bool, default: True ) –

    If the residual should be normalized by the eigenvalue.

  • warning_threshold (float, default: 0.1 ) –

    The threshold for the relative recursion error above which a warning is issued. This is only used if return_injected is True. Otherwise, the intend is that the memoizer wrapper handles the warning.

  • eta_decay (float, default: 1e-14 ) –

    Small value to separate very slow decaying modes from non-decaying ones.


    1. S. Brück, et al., Efficient algorithms for large-scale quantum transport calculations, The Journal of Chemical Physics, 2017. 

Methods:

  • __call__

    Returns the surface Green's function.

__call__ #

__call__(a_ii: NDArray, a_ij: NDArray, a_ji: NDArray, contact: str, return_injected: bool = False, return_modes_only: bool = False) -> NDArray | tuple[NDArray, NDArray, NDArray]

Returns the surface Green's function.

Parameters:

  • a_ii (NDArray) –

    Diagonal boundary block of a system matrix.

  • a_ij (NDArray) –

    Superdiagonal boundary block of a system matrix.

  • a_ji (NDArray) –

    Subdiagonal boundary block of a system matrix.

  • contact (str) –

    The contact to which the boundary blocks belong.

  • return_injected (bool, default: False ) –

    Whether to return the injection vector. If True, the function returns a tuple of the surface Green's function and the injection vector. False by default.

  • return_modes_only (bool, default: False ) –

    Whether to return the reflected modes without computing the surface Green's function. If True, the function returns a tuple of None, the injection vector, the reflected modes, their eigenvalues, and their pseudoinverses. False by default.

Returns:

  • x_ii ( NDArray ) –

    The system's surface Green's function. If return_modes_only is True, this is None.

  • b_injected ( NDArray ) –

    The injected b. Returned only if return_injected is True.

  • phi_reflected ( NDArray ) –

    The reflected modes. Returned only if return_modes_only is True.

  • eig_reflected ( NDArray ) –

    The eigenvalues corresponding to the reflected modes. Returned only if return_modes_only is True.

  • phi_inv_reflected ( NDArray ) –

    The pseudoinverse of the reflected modes. Returned only if return_modes_only is True.