Hamiltonian

Types

Methods

BialkaliSpectrum.h_diagonalMethod
h_diagonal(basis, matrix_element)

Create a diagonal matrix where the (i, i)th element is matrix_element(basis[i], basis[i]).

source
BialkaliSpectrum.h_rank_0Method
h_rank_0(basis, matrix_element)

Create a matrix where the (i, j)th element is matrix_element(basis[j], basis[i]).

Note that matrix_element must have the signature (State, State) -> ComplexF64.

source
BialkaliSpectrum.h_rank_1Method
h_rank_1(basis, matrix_element)

Create a vector of 3 matrices to contract against a rank 1 spherical tensor.

Note that matrix_element must have the signature (Int, State, State) -> ComplexF64. The first argument is the tensor component p in -1:1.

source
BialkaliSpectrum.h_rank_2Method
h_rank_2(basis, matrix_element)

Create a vector of 5 matrices to contract against a rank 2 spherical tensor.

Note that matrix_element must have the signature (Int, State, State) -> ComplexF64. The first argument is the tensor component p in -2:2.

source
BialkaliSpectrum.h_tensor_componentMethod
h_tensor_component(basis, matrix_element, p)

Create a matrix where the (i, j)th element is matrix_element(p, basis[j], basis[i]).

Note that matrix_element must have the signature (Int, State, State) -> ComplexF64. The first argument is the tensor component p.

source