utilities

Module: luescher_nd.utilities

Module for computing expectation values of kinetic hamiltonian in n dimensions.

factorial(n)[source]

Computes factorial of n

Return type

ndarray

get_laplace_coefficients(n_step, analytic=False)[source]

Computes the derivative coefficient for lapace operator up to step range Nstep.

The dispersion of the related momentum squared operator is equal to p ** 2 up to order p ** (2 * NStep).

Arguments
n_step: int

The number of momentum steps in each direction.

analytic: bool = False

Solves analytically for coefficients and converts result to floats afterwards. Takes more time to compute coefficients.

get_logger(level)[source]

Creates a logger a given level