Skip to content

Commit

Permalink
Minor fermionic doc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Sep 25, 2023
1 parent 0cc0629 commit 2d79096
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/src/lib/sectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ZNIrrep
U1Irrep
SU2Irrep
CU1Irrep
FermionParity
FibonacciAnyon
FusionTree
```
Expand Down
15 changes: 11 additions & 4 deletions docs/src/man/sectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -1244,10 +1244,17 @@ the corresponding tensors.

## Fermions

TODO

(Support for fermionic sectors and corresponding super vector spaces is on its way. This
section will be completed when the implementation is finished.)
TODO: Update the documentation for this section.

Fermionic sectors are represented by the type [`FermionParity`](@ref), which effectively
behaves like a ℤ₂ sector, but with two modifications. Firstly, the exchange of two sectors
with odd fermion parity should yield a minus sign, which is taken care of by virtue of the
R-symbol. This ensures that permuting tensors behave as expected. Secondly, diagrams with
self-crossing lines (aka twists) give rise to a minus sign for odd fermion parity. This is
in essence equivalent to having supertraces, which is what ensures that `@tensor` has a
result that is invariant under permutation of its input tensors. This does however lead to
unwanted minus signs for certain types of diagrams. To avoid this, the `@planar` macro does
not include a supertrace, but requires a manual resolution of all crossings in the diagram.

## Anyons

Expand Down
8 changes: 8 additions & 0 deletions src/sectors/fermions.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
FermionParity <: Sector
Represents sectors with fermion parity. The fermion parity is a ℤ₂ quantum number that
yields an additional sign when two odd fermions are exchanged.
See also: `FermionNumber`, `FermionSpin`
"""
struct FermionParity <: Sector
isodd::Bool
end
Expand Down

0 comments on commit 2d79096

Please sign in to comment.