This commit is contained in:
2022-08-13 07:22:58 +08:00
parent 6c833ecec6
commit 733fb377d5
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ def main():
guan.plot(k_array, eigenvalue_array, xlabel='kx', ylabel='E', style='k')
H_k = functools.partial(hamiltonian, Ny=Ny, B=1/Ny)
chern_number = guan.calculate_chern_number_for_square_lattice(H_k, precision=100)
chern_number = guan.calculate_chern_number_for_square_lattice_with_efficient_method(H_k, precision=100)
print(chern_number)
print(sum(chern_number))