:orphan: .. _user-basis_example1-label: spinless fermions with nearest-neighbor interactions in 1d ---------------------------------------------------------- This example makes use of the `user_basis` class of `basis_general` to show how to construct spinless fermion systems with symmetries. Please consult this post: :ref:`user_basis-label`, for more detailed explanations for using the `user_basis` class. Script ------ :download:`download script <../../../examples/scripts/user_basis_trivial-spinless_fermion.py>` .. literalinclude:: ../../../examples/scripts/user_basis_trivial-spinless_fermion.py :linenos: :language: python :lines: 1-