qecx.Face

class qecx.Face(vertices, color=None)

Bases: object

Single face (2-cell) of a cell complex.

Variables:
  • vertices (tuple[int, ...]) – Ordered vertex indices forming the face boundary; sequence input is normalized to a tuple at construction.

  • color (int | None) – Coloring assignment (e.g. 0/1/2 for a 3-coloring).