quantax.model.GeneralDet#

class quantax.model.GeneralDet#

General determinant wavefunction \(\psi(n) = \mathrm{det}(n \star U)\).

__init__(U: Array | None = None, dtype: dtype | None = None, out_dtype: dtype | None = None)#

Initialize the GeneralDet model.

Parameters:
  • U – The orbital matrix. If None, it will be initialized as a Fermi sea.d

  • dtype – The data type for orbital parameters.

  • out_dtype – The data type for computations and outputs. When dtype is real and out_dtype is complex, U stores the real and imaginary parts using real numbers.

property U_full: Array#

Returns the full orbital matrix U.

init_internal(s: Array) MF_Internal#

Initialize internal values for given input configurations. See RefModel for details.

ref_forward(s: Array, s_old: Array, nflips: int, internal: MF_Internal, return_update: bool = False) LogArray | Tuple[LogArray, MF_Internal]#

Accelerated forward pass through local updates and internal quantities. See RefModel for details.