Spin Chain Basis Construction
A spin-chain basis converts local spin operators into transitions between integer-labeled configurations. Explicit bit conventions eliminate factor-of-two and site-order errors before diagonalization. The numerical basis construction here supports sparse Hamiltonian assembly and exact diagonalization.
Bits and dimensionless spin operators
Section titled “Bits and dimensionless spin operators”For spin- sites, let bit mean spin up and mean spin down, with integer label . Site 0 is the least significant bit. Use dimensionless operators ; physical angular momentum is .
Then
The lowering operator reverses that transition. No fermionic sign accompanies a spin flip on a different site. This distinction matters when comparing to Jordan–Wigner transformed fermions.
In ascending local bit order , the actual stored matrices are
They obey with . Importing the usual displayed Pauli matrices in the opposite order without changing basis reverses the stored and components. To compare bit transitions with Kronecker matrices, order tensor factors from site down to site 0 so the last factor is the least significant bit. Check a complex action as well as a real exchange spectrum.
The full dimension is . If total magnetization is conserved, enumerate only states with a fixed popcount , giving dimension and .
Heisenberg exchange by bit operations
Section titled “Heisenberg exchange by bit operations”For one bond,
Its diagonal contribution is . If the two bits differ, flip both with exclusive-or and add matrix element . If they agree, there is no off-diagonal transition. This rule gives a sparse matrix directly without global Kronecker products.
Use a dictionary or combinatorial rank map from allowed bitstrings to row indices. The integer label is not generally the row number in a symmetry-restricted basis.
Two-spin singlet benchmark
Section titled “Two-spin singlet benchmark”For a single bond and , in basis ,
Its eigenvalues are for the singlet and for the symmetric triplet state. The fully polarized sectors also have energy . Recombining the sectors reproduces the triplet degeneracy.
This test diagnoses use of Pauli matrices where spin matrices were intended: that error multiplies all exchange energies by four. A spectrum alone is not enough if the same wrong convention was used to compute the reference.
Boundary conditions and completeness
Section titled “Boundary conditions and completeness”Store the bond list separately from the basis. An open chain contains . A periodic chain adds , but for very small the intended graph must be specified: blindly wrapping can count the only pair twice.
Check basis uniqueness, sector dimension, Hermiticity, and invariance of the chosen sector. A transverse field changes magnetization, so a fixed- basis is not closed. Projecting it into that basis silently discards the field rather than approximating its dynamics.
For higher spin, use digits and ladder coefficients . Binary flip rules do not generalize unchanged.
Exercise
Section titled “Exercise”Construct the one-up-spin sector of a periodic exchange chain and determine the hopping amplitude of the up spin.
Solution
The basis has states labeled by the up-spin position. Each antiparallel bond moves the up spin to a neighbor with amplitude . For with each undirected bond counted once, two bonds are antiparallel, giving diagonal energy . Plane waves then have energy . This checks the bond list and momentum convention.
References
Section titled “References”- Weinberg, P., and Bukov, M., “QuSpin: a Python package for dynamics and exact diagonalisation of quantum many body systems. Part I: spin chains,” SciPost Physics 2, 003 (2017), arXiv:1610.03042 — basis construction and symmetry-resolved examples.