deltakit.decode.noise_sources.CombinedSequences#

class deltakit.decode.noise_sources.CombinedSequences(internal_sources: tuple[SequentialNoise[CodeT, ErrorT], ...])#

Bases: SequentialNoise[tuple[CodeT, …], tuple[ErrorT, …]], Generic[CodeT, ErrorT]

Class to combine several sequential noise sources into one combined model, where each error returned from one of the internal sources becomes an element in a tuple. This is the product of all the internal sources.

Methods#

CombinedSequences.build_batch_error_generator

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

CombinedSequences.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.

CombinedSequences.error_generator

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

CombinedSequences.error_list

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

CombinedSequences.field_values

Return the values of data that characterises this noise model.

CombinedSequences.get_rng

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

CombinedSequences.sequence_size

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

CombinedSequences.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.