quantax.symmetry.ParticleConserve#

quantax.symmetry.ParticleConserve(Nparticle: int | Tuple | List | None = None) Symmetry#

Particle conservation symmetry. Conserved number of spin-up for spin systems, and conserved (Nup, Ndown) fermions for fermion systems. The default behavior when Nparticle = None is to choose spin-up = spin-down for spin systems and Nup = Ndown = Nsites for fermion systems.

Note

The default behavior here is the same amount of spin-up and spin-down, while in the initialization of class Symmetry the default behavior is no particle conservation symmetry.