update
This commit is contained in:
parent
50ae8395f9
commit
2f39741862
@ -10,7 +10,7 @@ import cmath
|
|||||||
import functools
|
import functools
|
||||||
|
|
||||||
|
|
||||||
def hamiltonian(k, N, M, t1): # Haldane哈密顿量(N是条带的宽度参数)
|
def hamiltonian(k, N, M, t1): # graphene哈密顿量(N是条带的宽度参数)
|
||||||
# 初始化为零矩阵
|
# 初始化为零矩阵
|
||||||
h00 = np.zeros((4*N, 4*N), dtype=complex)
|
h00 = np.zeros((4*N, 4*N), dtype=complex)
|
||||||
h01 = np.zeros((4*N, 4*N), dtype=complex)
|
h01 = np.zeros((4*N, 4*N), dtype=complex)
|
||||||
|
@ -10,7 +10,7 @@ import cmath
|
|||||||
import functools
|
import functools
|
||||||
|
|
||||||
|
|
||||||
def hamiltonian(k1, k2, M, t1, a=1/sqrt(3)): # Haldane哈密顿量(a为原子间距,不赋值的话默认为1/sqrt(3))
|
def hamiltonian(k1, k2, M, t1, a=1/sqrt(3)): # graphene哈密顿量(a为原子间距,不赋值的话默认为1/sqrt(3))
|
||||||
# 初始化为零矩阵
|
# 初始化为零矩阵
|
||||||
h0 = np.zeros((2, 2), dtype=complex)
|
h0 = np.zeros((2, 2), dtype=complex)
|
||||||
h1 = np.zeros((2, 2), dtype=complex)
|
h1 = np.zeros((2, 2), dtype=complex)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user