Update API_Reference.py
This commit is contained in:
parent
e4cf9e1534
commit
95eb916545
@ -2,33 +2,6 @@
|
||||
|
||||
import guan
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 1: basic functions
|
||||
|
||||
guan.test()
|
||||
@ -77,32 +50,6 @@ sigma_zz = guan.sigma_zz()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 2: Fourier transform
|
||||
|
||||
# 通过元胞和跃迁项得到一维的哈密顿量(需要输入k值)
|
||||
@ -145,31 +92,6 @@ b1, b2, b3 = guan.calculate_three_dimensional_reciprocal_lattice_vectors_with_sy
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 3: Hamiltonian of finite size systems
|
||||
|
||||
# 构建一维的有限尺寸体系哈密顿量(可设置是否为周期边界条件)
|
||||
@ -203,24 +125,6 @@ H0, H1, H2 = guan.get_onsite_and_hopping_terms_of_half_bhz_model_for_spin_up(A=0
|
||||
H0, H1, H2 = guan.get_onsite_and_hopping_terms_of_half_bhz_model_for_spin_down(A=0.3645/5, B=-0.686/25, C=0, D=-0.512/25, M=-0.01, a=1)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -280,26 +184,6 @@ hamiltonian = guan.hamiltonian_of_kagome_lattice(kx, ky, t=1)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 5: band structures and wave functions
|
||||
|
||||
@ -334,30 +218,6 @@ vector1_array, vector2_array = guan.rotation_of_degenerate_vectors_array(vector1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 6: Green functions
|
||||
|
||||
# 输入哈密顿量,得到格林函数
|
||||
@ -400,34 +260,6 @@ G_n = guan.electron_correlation_function_green_n_for_local_current(fermi_energy,
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 7: density of states
|
||||
|
||||
# 计算体系的总态密度
|
||||
@ -456,29 +288,6 @@ local_dos = guan.local_density_of_states_for_square_lattice_with_self_energy_usi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 8: quantum transport
|
||||
|
||||
# 计算电导
|
||||
@ -554,30 +363,6 @@ transmission_matrix_for_active_channels_averaged, reflection_matrix_for_active_c
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 9: topological invariant
|
||||
|
||||
# 通过高效法计算方格子的陈数
|
||||
@ -615,31 +400,6 @@ wilson_loop_array = guan.calculate_wilson_loop(hamiltonian_function, k_min='defa
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 10: plot figures
|
||||
|
||||
# 导入plt, fig, ax
|
||||
@ -698,30 +458,6 @@ color_array = guan.color_matplotlib()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 11: read and write
|
||||
|
||||
# 将数据存到文件
|
||||
@ -772,22 +508,6 @@ guan.print_array_with_index(array, show_index=1, index_type=0)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 12: file processing
|
||||
@ -859,33 +579,6 @@ guan.compress_wav_to_mp3(wav_path, output_filename='a.mp3', bitrate='16k')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Module 13: data processing
|
||||
|
||||
# 并行计算前的预处理,把参数分成多份
|
||||
|
Loading…
x
Reference in New Issue
Block a user