PAOFLOW.hamiltonian.bloch_derivatives#

Bloch Hamiltonian and its first and second k-derivatives at arbitrary k from HRs.

The real-space PAO Hamiltonian HRs of PAOFLOW.pao_hamiltonian() defines the lattice-gauge Bloch Hamiltonian

\[H(\mathbf k) = \sum_{\mathbf n} e^{-i\mathbf k\cdot\mathbf R_{\mathbf n}} H(\mathbf n), \qquad \mathbf R_{\mathbf n} = a\,(\mathbf n\cdot\mathbf a_i),\]

with the pair-resolved Wigner-Seitz images of the real-space cells (as the electron-phonon interpolation of PAOFLOW.elphon.elph_bloch). Its k-derivatives are explicit sums,

\[\partial_a H = \sum_{\mathbf n} (-iR^a_{\mathbf n})\,e^{-i\mathbf k\cdot\mathbf R_{\mathbf n}} H(\mathbf n), \qquad \partial_a\partial_b H = \sum_{\mathbf n} (-R^a_{\mathbf n}R^b_{\mathbf n})\, e^{-i\mathbf k\cdot\mathbf R_{\mathbf n}} H(\mathbf n).\]

The velocity and the “curvature” operators of the atomic-gauge Hamiltonian \(H^A_{ij} = e^{i\mathbf k\cdot(\boldsymbol\tau_j-\boldsymbol\tau_i)}H_{ij}\) (the position operator diagonal on the orbital centres \(\boldsymbol\tau_i\)) are, expressed in the lattice gauge,

\[v_a = \partial_a H + i\,\Delta\tau_a\circ H,\qquad w_{ab} = \partial_a\partial_b H + i\,\Delta\tau_b\circ\partial_a H + i\,\Delta\tau_a\circ\partial_b H - \Delta\tau_a\Delta\tau_b\circ H,\]

with \((\Delta\tau_a)_{ij} = (\tau_j-\tau_i)_a\) and \(\circ\) the element-wise product; their band-basis matrices \(U^\dagger v_a U\) equal those of \(\partial_a H^A\) and \(\partial_a\partial_b H^A\) in the eigenbasis of \(H^A\). Units: eV, bohr, 1/bohr; hbar = 1 (v is \(\hbar\mathbf v\) in eV bohr, w in eV bohr^2).

Attributes#

Classes#

BlochTerms

Real-space ingredients of the Bloch Hamiltonian and its derivatives.

Functions#

bloch_terms_from_HRs(HRs, a_vectors, alat[, ...])

Wigner-Seitz real-space terms of HRs for hamiltonian_derivatives_block().

hamiltonian_derivatives_block(terms, k_cryst)

H, dH/dk_a and d^2H/dk_a dk_b (orbital basis) at a block of k-points.

velocity_and_curvature_operators(terms, H, dH, d2H)

Atomic-gauge velocity v_a and curvature w_ab operators in the lattice gauge.

orbital_positions_from_data(data_controller)

Orbital centres (crystal coordinates) of a PAOFLOW run or a tight-binding model.

Module Contents#

PAOFLOW.hamiltonian.bloch_derivatives.PAIRS_AB = ((0, 0), (0, 1), (0, 2), (1, 1), (1, 2), (2, 2))[source]#
class PAOFLOW.hamiltonian.bloch_derivatives.BlochTerms[source]#

Real-space ingredients of the Bloch Hamiltonian and its derivatives.

Variables:
  • cells (ndarray (nws, 3), int) – Integer cells n of the Wigner-Seitz images (phase exp(-2 pi i k.n)).

  • cell_vectors_bohr (ndarray (nws, 3)) – Cartesian R_n (bohr).

  • hamiltonian_cells (ndarray (nws, nawf*nawf), complex) – Wigner-Seitz weighted H(n) (eV), flattened over the orbital pair.

  • separation_bohr (ndarray (3, nawf, nawf)) – tau_j - tau_i (bohr); zero without orbital positions.

  • nawf (int)

cells: numpy.typing.NDArray[numpy.int_][source]#
cell_vectors_bohr: numpy.typing.NDArray[numpy.float64][source]#
hamiltonian_cells: numpy.typing.NDArray[numpy.complex128][source]#
separation_bohr: numpy.typing.NDArray[numpy.float64][source]#
nawf: int[source]#
PAOFLOW.hamiltonian.bloch_derivatives.bloch_terms_from_HRs(HRs, a_vectors, alat, orbital_positions_cryst=None, ispin=0, hopping_cutoff=None)[source]#

Wigner-Seitz real-space terms of HRs for hamiltonian_derivatives_block().

Parameters:
  • HRs (ndarray (nawf, nawf, n1, n2, n3, nspin)) – PAOFLOW’s real-space Hamiltonian (eV), H(k) = sum_n exp(-2 pi i k.n) HRs[..., n].

  • a_vectors (ndarray (3, 3)) – Direct lattice vectors (rows, alat units).

  • alat (float) – Lattice parameter (bohr).

  • orbital_positions_cryst (ndarray (nawf, 3), optional) – Orbital centres in crystal coordinates (pair-resolved Wigner-Seitz cells and the intersite position term); None puts every orbital at the origin.

  • ispin (int, optional) – Spin channel.

  • hopping_cutoff (float, optional) – Drop the cells whose largest weighted |H(n)| is below this value (eV).

Return type:

BlochTerms

PAOFLOW.hamiltonian.bloch_derivatives.hamiltonian_derivatives_block(terms, k_cryst)[source]#

H, dH/dk_a and d^2H/dk_a dk_b (orbital basis) at a block of k-points.

Parameters:
  • terms (BlochTerms)

  • k_cryst (ndarray (nb, 3)) – Crystal coordinates.

Returns:

  • H (ndarray (nb, nawf, nawf)) – eV, Hermitised.

  • dH (ndarray (nb, 3, nawf, nawf)) – eV bohr.

  • d2H (ndarray (nb, 6, nawf, nawf)) – eV bohr^2, the pairs of PAIRS_AB.

PAOFLOW.hamiltonian.bloch_derivatives.velocity_and_curvature_operators(terms, H, dH, d2H)[source]#

Atomic-gauge velocity v_a and curvature w_ab operators in the lattice gauge.

Parameters:
Returns:

  • v (ndarray (nb, 3, nawf, nawf)) – \(\partial_a H + i\Delta\tau_a\circ H\) (eV bohr).

  • w (ndarray (nb, 3, 3, nawf, nawf)) – \(\partial_a\partial_b H + i\Delta\tau_b\circ\partial_a H + i\Delta\tau_a\circ\partial_b H - \Delta\tau_a\Delta\tau_b\circ H\) (eV bohr^2), symmetric in (a, b).

PAOFLOW.hamiltonian.bloch_derivatives.orbital_positions_from_data(data_controller)[source]#

Orbital centres (crystal coordinates) of a PAOFLOW run or a tight-binding model.

QE runs hold the Cartesian centre of every PAO orbital in arrays['basis'] (PAOFLOW.elphon.elph_bloch.pao_orbital_positions()); tight-binding models hold the atom positions arrays['tau'] (Cartesian, alat units) with arrays['naw'] orbitals per atom. Returns None when neither is available.