diff --git a/README.md b/README.md index 4f9d2eb..9c36c80 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Guan package -Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about (Ji-Huan Guan, 关济寰). With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing. +Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about (Ji-Huan Guan, 关济寰). With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as figure plotting, file-reading/writing, data processing, file processing. The primary location of this package is on website https://py.guanjihuan.com. @@ -23,11 +23,10 @@ import guan + density of states + quantum transport + topological invariant -+ read and write + plot figures ++ read and write + data processing -+ others - ++ file processing ## About this package diff --git a/Source_Code/PyPI/setup.cfg b/Source_Code/PyPI/setup.cfg index 3d3c5fc..af08205 100644 --- a/Source_Code/PyPI/setup.cfg +++ b/Source_Code/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.0.179 +version = 0.0.180 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/Source_Code/PyPI/src/guan.egg-info/PKG-INFO b/Source_Code/PyPI/src/guan.egg-info/PKG-INFO index 13c1d30..ad8ff50 100644 --- a/Source_Code/PyPI/src/guan.egg-info/PKG-INFO +++ b/Source_Code/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: guan -Version: 0.0.179 +Version: 0.0.180 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/Source_Code/PyPI/src/guan/__init__.py b/Source_Code/PyPI/src/guan/__init__.py index 9a0ef42..fcbd96a 100644 --- a/Source_Code/PyPI/src/guan/__init__.py +++ b/Source_Code/PyPI/src/guan/__init__.py @@ -57,13 +57,11 @@ # Module 1: basic functions -## test - +# 测试 def test(): print('\nSuccess in the installation of Guan package!\n') -## Pauli matrices - +# 泡利矩阵 def sigma_0(): import numpy as np return np.eye(2) @@ -80,8 +78,7 @@ def sigma_z(): import numpy as np return np.array([[1, 0],[0, -1]]) -## Kronecker product of Pauli matrices - +# 泡利矩阵的张量积 def sigma_00(): import numpy as np import guan @@ -1568,8 +1565,6 @@ def local_density_of_states_for_square_lattice_with_self_energy_using_dyson_equa # Module 8: quantum transport -## conductance - # 计算电导 def calculate_conductance(fermi_energy, h00, h01, length=100): import numpy as np @@ -1773,8 +1768,6 @@ def calculate_conductance_with_scattering_length_array(fermi_energy, h00, h01, l conductance_array = conductance_array/calculation_times return conductance_array -## multi-terminal transmission - # 计算得到Gamma矩阵和格林函数,用于计算六端口的量子输运 def get_gamma_array_and_green_for_six_terminal_transmission(fermi_energy, h00_for_lead_4, h01_for_lead_4, h00_for_lead_2, h01_for_lead_2, center_hamiltonian, width=10, length=50, internal_degree=1, moving_step_of_leads=10): import numpy as np @@ -1857,8 +1850,6 @@ def calculate_six_terminal_transmissions_from_lead_1(fermi_energy, h00_for_lead_ transmission_16 = np.real(np.trace(np.dot(np.dot(np.dot(gamma_array[0], green), gamma_array[5]), green.transpose().conj()))) return transmission_12, transmission_13, transmission_14, transmission_15, transmission_16 -## scattering matrix - # 通过动量k的虚部,判断通道为传播通道还是衰减通道 def if_active_channel(k_of_channel): import numpy as np @@ -3841,7 +3832,7 @@ def play_element_words(random_on=0, show_translation=1, show_link=1, translation -# # Module 13: file processing +# Module 13: file processing # 如果不存在文件夹,则新建文件夹 def make_directory(directory='./test'):