This commit is contained in:
2022-10-09 02:51:02 +08:00
parent a3d7b26a29
commit dffafbb61e
9 changed files with 9 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ from math import *
def hamiltonian(k): # SSH模型哈密顿量
gamma = 0.5
lambda0 = 1
h = np.zeros((2, 2))*(1+0j)
h = np.zeros((2, 2), dtype=complex)
h[0,0] = 0
h[1,1] = 0
h[0,1] = gamma+lambda0*cmath.exp(-1j*k)

View File

@@ -12,7 +12,7 @@ def hamiltonian(k):
gamma = 0.5
lambda0 = 1
delta = 0
h = np.zeros((2, 2))*(1+0j)
h = np.zeros((2, 2), dtype=complex)
h[0,0] = delta
h[1,1] = -delta
h[0,1] = gamma+lambda0*cmath.exp(-1j*k)