コード例 #1
0
def test_topo_bands():
	"""
	Function for testing the band structure generation.
	"""	
	sigma_0 = 1.e-6+1.e-6j
	N = 10
	topo = make_topo(50.+0.j, 3.645+0.j, -68.6+0.j, -0.1+0.j, -51.2+0.j, -0.01+0.j, 2.+0.j, 1.+0.j,sigma_0,0.5,500,N,1)
	t_x = calc.add_spin(topo[1])
	hamil = calc.add_spin(topo[0].hamil)
	calc.band_structure(hamil,t_x, N)
	plt.show()
コード例 #2
0
def build_rashba(on_site, t_y, t_x, so_strength,sigma_0, iterations, mixing, N, n_layers,E):
	"""
	Initializes a Rashba plane with the given parameters
	"""	
	sigma_x = np.array([[0,1],[1,0]],dtype=np.complex_)
	sigma_y = np.array([[0,-1.j],[1.j,0]],dtype=np.complex_)
	t_y = calc.add_spin(t_y) + (1.j)*so_strength*sigma_x
	t_x = -1*(calc.add_spin(t_x) + (1.j)*so_strength*sigma_y)
	h = calc.add_spin(on_site)
	rashba = constructor.Constructor(E,h,t_y,sigma_0,mixing,iterations,N, n_layers, t_x)
	return [rashba, t_x]
コード例 #3
0
def test_greens_2():
	"""
	Function for testing the band structure generation.
	"""	
	greens = constructor.Constructor(-3,-2,1,1.e-6+1.e-6j,0.5,0,1,1)
	hamil = calc.add_spin(greens.hamil)
	calc.band_structure(hamil,1)