模型和能带, 学术

方格子模型在实空间中的哈密顿量形式

之前写过一些哈密顿量矩阵的赋值代码,可能不是特别直观。这里给出哈密顿量矩阵的具体的形式。

以3×3点方格子为例。示意图如下:

H=(|1⟩,|2⟩,|3⟩,|4⟩,|5⟩,|6⟩,|7⟩,|8⟩,|9⟩)(0tx0ty00000tx†0tx0ty00000tx†000ty000ty†000tx0ty000ty†0tx†0tx0ty000ty†0tx†000ty000ty†000tx00000ty†0tx†0tx00000ty†0tx†0)(⟨1|⟨2|⟨3|⟨4|⟨5|⟨6|⟨7|⟨8|⟨9|)\begin{aligned}H=&\begin{pmatrix} |1 \rangle, |2 \rangle, |3 \rangle, |4 \rangle, |5 \rangle, |6 \rangle, |7 \rangle, |8 \rangle, |9 \rangle \end{pmatrix}\\&\begin{pmatrix}0 & t_x & 0 & t_y & 0 & 0 & 0 & 0 & 0 \\t_x^{\dagger} & 0 & t_x & 0 & t_y & 0 & 0 & 0 & 0 \\0 & t_x^{\dagger} & 0 & 0 & 0 & t_y & 0 & 0 & 0 \\t_y^{\dagger} & 0 & 0 & 0 & t_x & 0 &t_y& 0 & 0 \\0 & t_y^{\dagger} & 0 & t_x^{\dagger} & 0 & t_x & 0 & t_y & 0 \\0 & 0 & t_y^{\dagger} & 0 & t_x^{\dagger} & 0 & 0 & 0 & t_y \\0 &0 & 0 & t_y^{\dagger} & 0 & 0 & 0 & t_x & 0 \\0 & 0 & 0 & 0 & t_y^{\dagger} & 0 & t_x^{\dagger} & 0 & t_x \\0 & 0 & 0 & 0 & 0 & t_y^{\dagger} & 0 & t_x^{\dagger} & 0 \\\end{pmatrix}\begin{pmatrix} \langle 1|\\ \langle 2| \\ \langle 3| \\\langle 4| \\\langle 5| \\ \langle 6| \\ \langle 7| \\\langle 8| \\ \langle 9| \end{pmatrix}\end{aligned}

Python实现代码:

"""
This code is supported by the website: https://www.guanjihuan.com
The newest version of this code is on the web page: https://www.guanjihuan.com/archives/5375
"""

import numpy as np

def hamiltonian(width=3, length=3):   # 方格子哈密顿量
    h = np.zeros((width*length, width*length))
    # y方向的跃迁
    for x in range(length):
        for y in range(width-1):
            h[x*width+y, x*width+y+1] = 1
            h[x*width+y+1, x*width+y] = 1
    # x方向的跃迁
    for x in range(length-1):
        for y in range(width):
            h[x*width+y, (x+1)*width+y] = 1
            h[(x+1)*width+y, x*width+y] = 1
    return h

h = hamiltonian()
print(h)

运行结果为:

此外,以上哈密顿量可以写为更紧凑的形式:

H=∑x,y\{tx|x,y⟩⟨x+1,y|+ty|x,y⟩⟨x,y+1|\}+h.c.H=\sum_{x,y}\big\{ t_x |x, y\rangle\langle x+1,y|+t_y |x, y\rangle\langle x,y+1| \big\} +\mathrm{h.c.}

可以进一步改写成张量积形式[1]:

H=∑x,y\{tx|x⟩⟨x+1|⊗|y⟩⟨y|+ty|x⟩⟨x|⊗|y⟩⟨y+1|\}+h.c.H=\sum_{x,y}\big\{ t_x |x\rangle\langle x+1|\otimes |y\rangle\langle y|+t_y |x\rangle\langle x|\otimes |y\rangle\langle y+1|\big\} +\mathrm{h.c.}

张量积形式的代码为:

"""
This code is supported by the website: https://www.guanjihuan.com
The newest version of this code is on the web page: https://www.guanjihuan.com/archives/5375
"""

import numpy as np

def hamiltonian(width=3, length=3):   # 方格子哈密顿量
    hopping_x = np.zeros((length, length))
    hopping_y = np.zeros((width, width))
    for i in range(length-1):
        hopping_x[i, i+1] = 1
        hopping_x[i+1, i] = 1
    for i in range(width-1):
        hopping_y[i, i+1] = 1
        hopping_y[i+1, i] = 1
    h = np.kron(hopping_x, np.eye(width))+np.kron(np.eye(length), hopping_y)
    return h

h = hamiltonian()
print(h)

运算结果和上面代码的结果相同。

参考资料:

[1] 二维方格Hofstadter's butterfly

评论功能已关闭,以下留言为历史存档,仅供查看。