arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cond-mat/0302534cond-mat.mes-hallcond-mat.str-el
收藏

Physics0 .01:精确对角化的面向对象编程

Physics0.01 : Object-Oriented Programming for Exact Diagonalization

Myung-Hoon Chung

摘要:

一个新的图书馆代码系统被提出并启动。需要强调的是,库代码中的类名应该使用我们在教科书中找到的相同术语。本项目采用微软公司发明的C#语言。为了获得易读的相干码,提出了几个经验法则。作为第一步,我们提出了物理学中的精确对角化的库代码。当我们构建代码时,我们清楚地区分了模型独立部分和依赖部分,并且我们使用熟悉的术语,如{ \sf Hamilton}、{\sf HilbertSpace}、{ \sf GroundState}、{ \it etc}作为类名。作为一个具体的例子,我们计算了一个量子点的基态能量,显示了三重态到单重态的跃迁。

英文摘要:

A new system of library code is proposed and initiated. It is emphasized that the same terminologies as we find in our textbooks should be used for class names in the library code. The language C# invented by Microsoft is adopted in this project. Several rules of thumb are suggested in order to obtain easy-readable coherent codes. As a first step, we present the library code for exact diagonalization in physics. When we build codes, we clearly distinguish between model independent and dependent parts, and we use familiar terminologies like {\sf Hamiltonian}, {\sf HilbertSpace}, {\sf GroundState}, {\it etc} as class names. As an explicit example, we calculate ground state energy of a quantum dot, showing the triplet-singlet transition.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑