tightbinder.topology#

Topology-related routines.

It incorporates routines to compute the Wilson loop spectra, as well as the topological invariants derived from it. Local markers such as the local Chern number are implemented as well.

Functions

berry_curvature

Calculation of the Berry curvature of a single band using the Fukui method.

calculate_chern_number

Routine to compute the first Chern number from the WCC flow.

calculate_polarization

Routine to compute the polarization from the WCC.

calculate_wannier_centre_flow

Routine to compute the evolution of the Wannier Charge Centres (WCC) through Wilson loop calculation.

calculate_wcc_gap_midpoints

Routine to compute the midpoint of the biggest gap for the WCC flow, and their relative positions to the WCC.

calculate_z2_invariant

Routine to compute the z2 invariant from the number of jumps the max gap midpoint does across different WCC bands.

chern_marker

Routine to evaluate the Chern marker at every position of the lattice.

count_crossings

Routine to compute the number of WCC that lie between one midpoint and the next one.

entanglement_entropy

TODO entanglement_entropy fix log(0).

entanglement_spectrum

Routine to obtain the eigenvalues from the correlation/density matrix, which is directly related with the entangled Hamiltonian.

plot_entanglement_spectrum

Routine to plot the entanglement spectrum as a function of k.

plot_polarization_flow

Routine to plot the polarization flow used to calculate the Chern number.

plot_wannier_centre_flow

Routine to plot the WCC evolution.

specify_partition_plane

Routine to specify a real-space partition of the atoms of the system based on a given plane.

specify_partition_shape

Routine to determine which atoms are inside of a partition of the system.

write_entanglement_spectrum_to_file

Routine to write the entanglement spectrum to a text file.