quantax.model.SingletPair#

class quantax.model.SingletPair#

Singlet paired wavefunction \(\psi(n) = \mathrm{det}(n_\uparrow \star F \star n_\downarrow)\). Only works for spinful systems with equal number of spin-up and spin-down particles.

__init__(F: Array | None = None, sublattice: Translation | Tuple[int, ...] | None = None, dtype: dtype | None = None, out_dtype: dtype | None = None)#

Initialize the SingletPair model.

Parameters:
  • F – The pairing matrix. If None, it will be initialized as paired Fermi sea orbitals.

  • sublattice – The sublattice structure.

  • 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, F stores the real and imaginary parts using real numbers.

property F_full: Array#

Return the full pairing matrix.

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.