@@ -30,23 +30,26 @@ export S⁻S⁺, S⁺S⁻
3030export transform_slave_fermion
3131
3232const _docs_basis_table = """
33- | tJ basis | slave-fermion |
34- | -------- | ------------- |
35- | |0⟩ | h⁺|0⟩ |
36- | u⁺|0⟩ | bꜛ⁺|0⟩ |
37- | d⁺|0⟩ | bꜜ⁺|0⟩ |
33+ ```
34+ | label | tJ basis | slave-fermion |
35+ | ----- | -------- | ------------- |
36+ | |0⟩ | |∅⟩ | h⁺|∅⟩ |
37+ | |↑⟩ | u⁺|∅⟩ | bꜛ⁺|∅⟩ |
38+ | |↓⟩ | d⁺|∅⟩ | bꜜ⁺|∅⟩ |
39+ ```
3840"""
3941
4042@doc """
4143 tj_space(particle_symmetry::Type{<:Sector}, spin_symmetry::Type{<:Sector}; slave_fermion::Bool = false)
4244
4345Return the local hilbert space for a t-J-type model with the given particle and spin symmetries.
44- The basis consists of the following vectors :
46+ The basis consists of the following states :
4547
4648$_docs_basis_table
4749
48- where `u⁺` and `d⁺` denote fermionic spin-up and spin-down creation operators, or when `slave_fermion = true`,
49- ``h`` is the fermionic holon operator, and ``bꜛ``, ``bꜜ`` are bosonic spinon operators.
50+ - `|∅⟩` is the vacuum state;
51+ - `u` and `d` denote fermionic spin-up and spin-down operators;
52+ - in the slave-fermion representation, ``h`` is the fermionic holon operator, and ``bꜛ``, ``bꜜ`` are bosonic spinon operators.
5053
5154The possible symmetries are:
5255- Particle number : `Trivial`, `U1Irrep`
@@ -130,7 +133,12 @@ for (opname, alias) in zip(
130133 # compatibility with Julia 1.10 (hub_doc is a Markdown.MD object)
131134 string (hub_doc)
132135 end
133- tJ_doc = replace (tJ_doc, " [spin_symmetry::Type{<:Sector}])" => " [spin_symmetry::Type{<:Sector}]; slave_fermion::Bool = false)" ) * " Use `slave_fermion = true` to switch to the slave-fermion basis.\n "
136+ tJ_doc = if occursin (" [spin_symmetry::Type{<:Sector}])" , tJ_doc)
137+ replace (tJ_doc, " [spin_symmetry::Type{<:Sector}])" => " [spin_symmetry::Type{<:Sector}]; slave_fermion::Bool = false)" )
138+ else
139+ replace (tJ_doc, " spin_symmetry::Type{<:Sector})" => " spin_symmetry::Type{<:Sector}; slave_fermion::Bool = false)" )
140+ end
141+ tJ_doc = tJ_doc * " Use `slave_fermion = true` to switch to the slave-fermion basis.\n "
134142 @doc (tJ_doc) $ opname
135143 end
136144
0 commit comments