Tutorials ========= This section contains detailed tutorials for using the Free Fermion Library. .. note:: These tutorials assume you have already installed the library and are familiar with the basic concepts from the :doc:`quickstart` guide. Tutorial Topics --------------- 1. **Getting Started** * Basic library usage * Importing and setting up * Simple examples 2. **Jordan-Wigner Operators** * Creating fermionic operators * Majorana operators * Operator rotations and transformations 3. **Pfaffian Calculations** * Understanding pfaffians * Combinatorial calculations * Applications to quantum systems 4. **Graph Algorithms** * Planar graphs and embeddings * Perfect matching problems * Pfaffian ordering algorithm (FKT) 5. **Advanced Examples** * Symplectic diagonalization * Gaussian state manipulation * Complex quantum system analysis Mathematical Background ----------------------- Free Fermion Systems ~~~~~~~~~~~~~~~~~~~~ Free fermion systems are quantum many-body systems where particles don't interact directly. They can be described by quadratic Hamiltonians of the form: .. math:: H = \sum_{i,j} H_{ij} a_i^\dagger a_j + \frac{1}{2}\sum_{i,j} \Delta_{ij} a_i^\dagger a_j^\dagger + \text{h.c.} where :math:`a_i^\dagger` and :math:`a_i` are fermionic creation and annihilation operators. Jordan-Wigner Transformation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Jordan-Wigner transformation maps fermionic operators to spin operators: .. math:: a_j = \left(\prod_{k