update
This commit is contained in:
11
Tutorial/calculate_Chern_number_and_Wilson_loop.py
Normal file
11
Tutorial/calculate_Chern_number_and_Wilson_loop.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import guan
|
||||
import numpy as np
|
||||
from math import *
|
||||
|
||||
chern_number = guan.calculate_chern_number_for_square_lattice(guan.hamiltonian_of_one_QAH_model, precision=100)
|
||||
print('\nChern number=', chern_number, '\n')
|
||||
|
||||
wilson_loop_array = guan.calculate_wilson_loop(guan.hamiltonian_of_ssh_model)
|
||||
print('Wilson loop =', wilson_loop_array)
|
||||
p = np.log(wilson_loop_array)/2/pi/1j
|
||||
print('\np =', p, '\n')
|
||||
Reference in New Issue
Block a user