tb/tb_utils.py
def tb_H(k, t3, t4):
    """ Returns the Hamiltonian of three-bands model at k with hopping amplitudes t3, and t4.

    Args:
        k (float): point in momentum space.
        t3, t4 (float): hopping parameter.

    Returns:
        np.array: the 3 by 3 Hamiltonian.
    """

    hamiltonian = np.zeros((3, 3), dtype=np.double)
    hamiltonian[0, 0] = 1.0 * np.sin(k)
    hamiltonian[0, 1] = - 1.0 - 1.0 * np.cos(k)
    hamiltonian[0, 2] = t3
    hamiltonian[1, 0] = - 1.0 - 1.0 * np.cos(k)
    hamiltonian[1, 1] = - 1.0 * np.sin(k)
    hamiltonian[1, 2] = - t3
    hamiltonian[2, 0] = t3
    hamiltonian[2, 1] = - t3
    hamiltonian[2, 2] = 2.0 * t4 * np.cos(k)
    return hamiltonian
 Returns the Hamiltonian of three-bands model at k with hopping amplitudes t3, and t4.

    Args:
        k (float): point in momentum space.
        t3, t4 (float): hopping parameter.

    Returns:
        np.array: the 3 by 3 Hamiltonian.
    
Returns the Hamiltonian of three-bands model at k with hopping amplitudes t3, and t4.
Returns the Hamiltonian of three - bands model at k with hopping amplitudes t3 and t4 .
def tb_H(k, t3, t4):
    hamiltonian = np.zeros((3, 3), dtype=np.double)
    hamiltonian[0, 0] = 1.0 * np.sin(k)
    hamiltonian[0, 1] = - 1.0 - 1.0 * np.cos(k)
    hamiltonian[0, 2] = t3
    hamiltonian[1, 0] = - 1.0 - 1.0 * np.cos(k)
    hamiltonian[1, 1] = - 1.0 * np.sin(k)
    hamiltonian[1, 2] = - t3
    hamiltonian[2, 0] = t3
    hamiltonian[2, 1] = - t3
    hamiltonian[2, 2] = 2.0 * t4 * np.cos(k)
    return hamiltonian
def tb_H ( k , t3 , t4 ) : hamiltonian = np . zeros ( ( 3 , 3 ) , dtype = np . double ) hamiltonian [ 0 , 0 ] = 1.0 * np . sin ( k ) hamiltonian [ 0 , 1 ] = - 1.0 - 1.0 * np . cos ( k ) hamiltonian [ 0 , 2 ] = t3 hamiltonian [ 1 , 0 ] = - 1.0 - 1.0 * np . cos ( k ) hamiltonian [ 1 , 1 ] = - 1.0 * np . sin ( k ) hamiltonian [ 1 , 2 ] = - t3 hamiltonian [ 2 , 0 ] = t3 hamiltonian [ 2 , 1 ] = - t3 hamiltonian [ 2 , 2 ] = 2.0 * t4 * np . cos ( k ) return hamiltonian
Returns the Hamiltonian of three-bands model at k with hopping amplitudes t3, and t4.
Returns the Hamiltonian of three - bands model at k with hopping amplitudes t3 and t4 .
""" Returns the Hamiltonian of three-bands model at k with hopping amplitudes t3, and t4.

    Args:
        k (float): point in momentum space.
        t3, t4 (float): hopping parameter.

    Returns:
        np.array: the 3 by 3 Hamiltonian.
    """
the 3 by 3 Hamiltonian.
the 3 by 3 Hamiltonian .
np.array
k
point in momentum space.
point in momentum space .
t3
t4
t3, t4
None