Giter Club home page Giter Club logo

lattice_top's Introduction

lattice_top

A package for lattice-based topological insulator calculations. This repo is mostly bult around a single class - the lattice system class. The class contains a bunch of protocols for creating a quantum system on a lattice, and then calculating various local markers.

Lattice System Class Structure

The class methods can be divided into a few sections.

Initialising the system:

The parent class does not initialise the system - this is left to a few subclasses to allow for a wider variety of quantum systems to be included. Whatever the system we have initialised, the same few internal parameters need to be set:

  • _lengths: system size, set by initialisation.
  • _edges: boundary conditions, set by initialisation.

Then the initialiser must set a few internal parameters:

  • _x_list: list of the x position of every site.
  • _y_list: list of the y position of every site.
  • _hamiltonian: the hamiltonian for the system.
  • _x_dif_hamiltonian: derivative of the hamiltonian with respect to a uniform magnetic vector potential in the x direction - used to calculate the adiabatic bott index and local kubo.
  • _y_dif_hamiltonian: derivative of the hamiltonian with respect to a uniform magnetic vector potential in the xy direction - used to calculate the adiabatic bott index and local kubo.
  • _n_sites: number of sites in the system

Individual initialisers may also set their own internal parameters, but they shouldnt be used for general calculations - only for methods specific to that individual type of system.

QWZ_System

This initialises a Qi-Wu-Zhang model on a grid. Sets the additional internal parameter:

  • _u_vals: gives you the u internal parameter for every site.

Amorphous_System

This sets up an amorphous lattice and builds a hamiltonian on that lattice. The first part is to set up the lattice. The second is to decorate it with a Hamiltonian This sets the additional parameters:

  • _sites: list of the coordinates of every site
  • _connections: list of pairs of indices of sites that are connected by an edge
  • _connection_types: a list of which boundary each connection hops over, eg if it hops over the PBC in the x or y direction

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.