vibeqc.kpath_from_segments

vibeqc.kpath_from_segments(system, segments, *, points_per_segment=30)[source]

Stitch a piecewise-linear k-path through high-symmetry points.

segments is a list of (start_frac, start_label, end_frac, end_label) tuples. Adjacent segments may share an endpoint — e.g. for a path Γ → X → M → Γ, three segments share their successive endpoints.

Returned KPath carries Cartesian k-points (bohr⁻¹), the matching fractional coordinates, the cumulative arc length along the path (used as the x-coordinate when plotting), and the (distance, label) tick marks for high-symmetry points.

points_per_segment controls the resolution of each leg.

Parameters:
Return type:

KPath