Skip to main content

Module validation

Module validation 

Source
Expand description

Validation of runtime protocol and coordinator payloads.

Functions§

validate_data_len
Validate that a bit vector has exactly the bytes required by its declared number of bits.
validate_hypergraph
Validate hyperedge probabilities, vertex references, and observable indices.
validate_loss
Validate structured loss sites, references, uniqueness, and acyclicity.
validate_outcomes
validate_parity_factor
Validate that every edge returned by a decoder belongs to its hypergraph.
validate_probability_modifier
Validate the shape, indices, and values of a probability modifier for an error model with error_count errors.
validate_reweights
Validate loaded-graph reweight indices, probabilities, and uniqueness.
validate_syndrome
Validate a syndrome’s storage and size against a hypergraph vertex count.