quantax.model.GeneralDet#

class quantax.model.GeneralDet#

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

__init__(U: Array | None = None, dtype: str | type[Any] | dtype | SupportsDType | None = None, out_dtype: str | type[Any] | dtype | SupportsDType | None = None)#

Initialize the GeneralDet model.

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

  • 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) tuple[LogArray, MF_Internal]#

Return wavefunction and internal values for given input configurations. See RefModel for details.

property required_update_modes: tuple[str, ...]#

The required update modes for accelerated ref_forward pass.

ref_forward(s: Array, s_old: Array, update_mode: dict[str, Any], internal: MF_Internal, return_update: Literal[False] = False) LogArray#
ref_forward(s: Array, s_old: Array, update_mode: dict[str, Any], internal: MF_Internal, return_update: Literal[True]) tuple[LogArray, MF_Internal]

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

property use_ref: bool#

Whether to use reference implementation for local updates. Default to True.