PAOFLOW.topology.do_topology#

Functions#

do_topology(data_controller)

Compute Berry curvature, spin Hall conductivity, and Z2 invariant on a k-path.

band_loop_H(HRaux, R, kq, nawf, nspin)

Evaluate the Bloch Hamiltonian \(H(\mathbf{k})\) from real-space data.

Module Contents#

PAOFLOW.topology.do_topology.do_topology(data_controller)[source]#

Compute Berry curvature, spin Hall conductivity, and Z2 invariant on a k-path.

Parameters:

data_controller (DataController) – Object providing data_arrays and data_attributes. Required arrays: HRs, kq, v_k, Dnm, b_vectors, R, Rfft. Required attributes: npool, bnd, nawf, nspin, alat, ipol, jpol, spol, Berry, eff_mass, spin_Hall, opath. For Z2: nelec. For spin Hall: Sj.

Returns:

Writes one or more output files to opath depending on the flags set in data_attributes:

  • Z2.dim — 2-D and 3-D Z2 topological invariants (when nspin == 1 and spin_Hall is True).

  • Berry curvature, Chern numbers, or spin Hall conductivity files (controlled by Berry and spin_Hall flags).

  • Effective mass tensor files (when eff_mass is True).

Return type:

None

Notes

The Z2 invariant is computed at the 8 time-reversal invariant momentum (TRIM) points following Fu, Kane, and Mele, Phys. Rev. B 76, 045302 (2007), using the Pfaffian method of Soluyanov and Vanderbilt, Phys. Rev. B 83, 235401 (2011). The Berry curvature and spin Hall conductivity are evaluated via the Kubo-formula approach. Momentum matrix elements are computed using the Fourier-differentiated Hamiltonian with the Dnm correction for non-primitive bases.

PAOFLOW.topology.do_topology.band_loop_H(HRaux, R, kq, nawf, nspin)[source]#

Evaluate the Bloch Hamiltonian \(H(\mathbf{k})\) from real-space data.

Parameters:
  • HRaux (np.ndarray, shape (nawf, nawf, nrtot, nspin), complex) – Real-space Hamiltonian elements, arranged with the lattice index on the last axis before nspin.

  • R (np.ndarray, shape (nrtot, 3)) – Real-space lattice vectors in units of the lattice constant.

  • kq (np.ndarray, shape (3, nksize)) – k-points in Cartesian coordinates.

  • nawf (int) – Number of atomic wave-function projectors.

  • nspin (int) – Number of spin channels.

Returns:

\(H(\mathbf{k})\) evaluated at each requested k-point.

Return type:

np.ndarray, shape (nksize, nawf, nawf, nspin), complex

Notes

Computes the Fourier sum

\[H(\mathbf{k}) = \sum_{\mathbf{R}} H(\mathbf{R})\, e^{2\pi i \mathbf{k}\cdot\mathbf{R}}\]

via a tensor contraction between HRaux and the phase matrix. This is a local variant of the same function in do_bands.py, accepting explicit R and kq arrays rather than a DataController instance.