Skip to content

Debugging non-Bravais Lattice TBLattice #954

Closed Answered by andrewkhardy
andrewkhardy asked this question in Q&A
Discussion options

You must be logged in to vote
params = {'t' : 1, 'n_k': 30, 'n_orbs' :1}
gf_struct = []
s_z = np.array([[1,0],[0,-1]])
id = np.eye(2*params["n_orbs"])
s_x = np.array([[0,1],[1,0]])

s_x_1 = np.array([[0,1],[0,0]])
s_x_2 = np.array([[0,0],[1,0]])
hopp = np.kron(s_x,id)
hopp_1 = np.kron(s_x_1,id) 
hopp_2 = np.kron(s_x_2,id) 

for o in range(0, params["n_orbs"]):
    gf_struct.append("up_c-" + str(o))
    gf_struct.append("up_f-" + str(o))
    gf_struct.append("dn_c-" + str(o))
    gf_struct.append("dn_f-" + str(o))

H = TBLattice(
units = [(1/2, np.sqrt(3)/2, 0.0), (1/2, -np.sqrt(3)/2, 0.0)],


hopping = {
    # nearest neighbour hopping -params["t"]
    ( 0,0): -params["t"] * hopp,
    ( 0,-1): -params["t"] * hopp_1,
 …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andrewkhardy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant