quantax.symmetry.Translation#
- class quantax.symmetry.Translation#
Bases:
SymmetryTranslation symmetry.
- __init__(vectors: Sequence[int] | NDArray[integer], sector: int | Sequence[int] = 0)#
Translation symmetry.
- Parameters:
vectors β The translation vectors, in the unit of lattice basis vectors.
sector β The symmetry sector.
- __matmul__(other: Symmetry) Symmetry#
Generate superposition of two symmetries.
from quantax.sites import Square from quantax.symmetry import Translation lattice = Square(4) trans1 = Translation((1, 0)) # translation symmetry in x axis trans2 = Translation((0, 1)) # translation symmetry in y axis trans2D = trans1 @ trans2 # 2D translation symmetry
Warning
Users are responsible to ensure the compatibility of different symmetries, especially if their generators donβt commute.
- property Nmodes: int#
The length of a configuration array, i.e. the number of local modes per sample. This is
Nsitesfor spins or spinless fermions and2 * Nsitesfor spinful fermions.
- property Z2_inversion: int#
The Z2 inversion symmetry. It represents the spin flip in spin-1/2 systems, and the particle-hole symmetry in fermionic systems. The meaning of each number is
1: Eigenvalue 1 after Z2 inversion
0: No Z2 inversion symmetry
-1: Eigenvalue -1 after Z2 inversion
- property basis#
The QuSpin basis corresponding to the symmetry.
- get_symm_spins(spins: Array) Array#
Get all symmetrized bases \(s'=Ts\) generated by the symmetry permutations.
- Parameters:
spins β Input spin or fermion configuration \(s\).
Note
This function is jittable.
- property particle_type: PARTICLE_TYPE#
The type of particle in the system. See
PARTICLE_TYPE.
- symmetrize(psi: NDArray | Array | LogArray | ScaleArray, spins: Array | None = None) NDArray | Array | LogArray | ScaleArray#
Symmetrize the wavefunction as
\[\psi^{\mathrm{symm}}(s) = \frac{d}{|G|} \sum_g \mathrm{sign}(s, g) \chi_g \psi(T_g s),\]where \(d\) is the dimension of the group representation, \(|G|\) is the number of elements in the symmetry group, and \(\mathrm{sign}(s, g)\) is the additional sign generated by the symmetry depending on the input Fock state (only for fermionic systems).
- Parameters:
psi β Wavefunctions \(\psi(T_i s)\).
spins β Input spin or fermion configuration \(s\). This is only necessary in fermionic systems, where additional minus signs \(\mathrm{sign}(s, g)\) can be generated by the symmetry.
- Returns:
The symmetrized wave function
Note
This function is jittable.