2. Tutorial: learning Kwant through examples#
- 2.1. Introduction
- 2.2. First steps: setting up a simple system and computing conductance
- 2.3. More interesting systems: spin, potential, shape
- 2.4. Beyond transport: Band structure and closed systems
- 2.5. Beyond square lattices: graphene
- 2.6. Superconductors: orbital degrees of freedom, conservation laws and symmetries
- 2.7. Computing local quantities: densities and currents
- 2.8. Plotting Kwant systems and data in various styles
- 2.9. Calculating spectral density with the kernel polynomial method
- 2.10. Discretizing continuous Hamiltonians
- 2.11. Adding magnetic field
- 2.12. Frequently asked questions
- What is a system, and what is a builder?
- What is a site?
- What is a hopping?
- What is a site family, and what is a tag?
- What is a lattice?
- When plotting, how to color the different sublattices differently?
- How to create many similar hoppings in one go?
- How to set the hoppings between adjacent sites?
- How to make a hole in a system?
- How to access a system’s sites?
- How to use different lattices for the scattering region and a lead?
- How to cut a finite system out of a system with translational symmetries?
- How does Kwant order the propagating modes of a lead?
- How does Kwant order scattering states?
- How does Kwant order components of an individual wavefunction?