qecx.ValidationError

class qecx.ValidationError(path, rule_id, message, severity='error')

Bases: object

A single validation finding.

Variables:
  • path (str) – JSON path to the offending field, e.g. "code.H_X" or "operations.syndrome_measurement.variants.non_ft".

  • rule_id (str) – Machine-readable rule identifier, e.g. "CSS_ORTHOGONALITY".

  • message (str) – Human-readable description of the problem.

  • severity (str) – "error" (must fix) or "warning" (informational).