TBit- Utilities for condensed matter physics tight binding calculations.

Safe HaskellNone




mixedSum :: [Matrix (Complex Double)] -> Maybe (Matrix (Complex Double)) Source

Take a list of matrices, some of which may differ from the others in dimensionality by a factor of two, and maybe return the sum of these matrices with appropriate (right) kronecker products taken to make the summation well-formed. Useful for combining matrices written in forms with and without spin indices.

toMatrix :: Gr (Matrix (Complex Double)) (Matrix (Complex Double)) -> Matrix (Complex Double) Source

Send a tight-binding graph model to the corresponding Hamiltonian matrix.