neuralqx.operators.computational.qr.numba.annihilation module

class QRAnnihilation(H, *, site, n=1)

Bases: ComputationalOperator

Non-cyclic QRLG annihilation operator on a single site site with step n:

(A_n ψ)(…, s_site, …) = ψ(…, s_site + n*step, …)

in the ordered basis of local states, i.e. it lowers the local label by n steps. If the lowered value would leave the allowed range [state_min, state_max], the contribution is zero.

  • At most 1 connected configuration per input

  • Matrix element is 1.0 when valid, else 0

property is_hermitian: bool

This function must return either True or False based on whether your operator is Hermitian or not. Note that unlike for the case of LocalOperator types, you must specify by-hand whether this operator is Hermitian or not, there is no implementation to deduce that information for you as there is no matrices stored in this operator type.

This property plays a role in determining the computational path to be taken when computing gradients. If you specify that the operator is Hermitian while in reality it is not, the computed gradients will be incorrect.

Returns:

True if this operator is Hermitian, False otherwise

property dtype

Specify a JAX NumPy or NumPy dtype for this operator (that is, what is the dtype of the matrix elements returned by this operator)