Quantum ESPRESSO files
WannierIO.guess_kpath
— Methodguess_kpath(kpoints; atol)
Guess high symmetry points from kpoint coordinates.
If there is angle between two consecutive kpoints, then it is labeled as a high-symmetry point.
Arguments
kpoints
: Vector ofVector
orVec3
, in Cartesian coordinates
Keyword Arguments
atol
: Absolute tolerance for checking cross product of two vectors
Returns
symm_point_indices
: Vector of indices of high-symmetry pointssymm_point_labels
: Vector of labels of high-symmetry points, for the moment it is empty
WannierIO.read_qe_band
— Methodread_qe_band(filename)
Read Quantum ESPRESSO bands.x
output data file.
The data file has format
&plot nbnd= 20, nks= 380 /
-0.500000 0.500000 0.500000
-3.320 -0.666 5.173 5.173 7.994 9.725 9.725 14.147 16.993 16.993
17.841 17.841 17.902 19.666 25.961 26.563 28.186 28.186 28.368 28.368
-0.495000 0.495000 0.495000
-3.322 -0.664 5.173 5.173 7.994 9.725 9.725 14.148 16.980 16.980
...
WannierIO.read_qe_xml
— Methodread_qe_xml(filename)
Read atomic structure and band structure from QE's XML output.
Return
lattice
:3 * 3
, Å, each column is a lattice vectoratom_positions
: length-n_atoms
vector, each element is a fractional positionatom_labels
: length-n_atoms
vector, each element is the label of the corresponding atomrecip_lattice
:3 * 3
, Å⁻¹, each column is a reciprocal lattice vectorkpoints
: length-n_kpts
vector, each element is a fractional kpointfermi_energy
: eValat
: thealat
of QE in Åeigenvalues
: length-n_kpts
vector, each element is a length-n_bands
vector of eigenvalue in eV. For spin-polarized but without SOC calculations, return two arries ofeigenvalues_up
andeigenvalues_dn
for the two spin channels.