This commit is contained in:
2021-12-27 16:39:28 +08:00
parent b39bf04dd4
commit 5e4375af09
3 changed files with 100 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ def main():
def hamiltonian(width, length, B): # 方格子哈密顿量
h = np.zeros((width*length, width*length))*(1+0j)
h = np.zeros((width*length, width*length), dtype=complex)
# y方向的跃迁
for x in range(length):
for y in range(width-1):