Physics, Python, Python Programming, Coding, Programming.
(default: 2.8 eV) Returns: H (2x2 numpy array): Hamiltonian matrix """ # Calculate the phase factors phase1 = np.exp(1j * (kx * delta1[0] + ky * delta1[1])) phase2 = np.exp(1j * (kx * delta2[0] + ky * delta2[1])) phase3 = np.exp(1j * (kx * delta3[0] + ky * delta3[1])) # Construct the Hamiltonian