This commit is contained in:
guanjihuan 2021-07-05 20:33:41 +08:00
parent 50ae8395f9
commit 2f39741862
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)