deltakit.decode.noise_sources.SequentialNoise#

class deltakit.decode.noise_sources.SequentialNoise#

Bases: _NoiseModel[CodeT, ErrorT]

Abstract class to manage the production of deterministically sized terminating noise generators.

Methods#

SequentialNoise.build_batch_error_generator

Given some representation of a code, return a generator of batches of errors for that code.

SequentialNoise.build_split_batch_error_generators

Given some representation of a code, return num_splits number of batch generators of errors for that code and the respective sizes for those generators.

SequentialNoise.error_generator

Given some representation of a code, return a generator of errors for that code.

SequentialNoise.error_list

Given some representation of a code, return a list of errors for that code.

SequentialNoise.field_values

Return the values of data that characterises this noise model.

SequentialNoise.get_rng

Return a numpy random number generator, using the member data seed.

SequentialNoise.sequence_size

Return the number of elements in the sequence that would be generated for the given code_data.

SequentialNoise.split_error_generator

Given some representation of a code, return num_splits number of generators of errors for that code and the respective sizes for those generators.