deltakit.decode.noise_sources.ExhaustiveMatchingNoise#
- class deltakit.decode.noise_sources.ExhaustiveMatchingNoise(weight: int | None, edge_filter: Callable[[HyperMultiGraph], Sequence[EdgeT]] | None = None)#
Bases:
SequentialNoise[HyperMultiGraph,OrderedDecodingEdges]A noise model that outputs all errors with a given weight.
If weight is set to None, this will result in all weights being evaluated in ascending order.
Methods#
Given some representation of a code, return a generator of batches of errors for that code. |
|
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. |
|
Given some representation of a code, return a generator of errors for that code. |
|
Given some representation of a code, return a list of errors for that code. |
|
Return the values of data that characterises this noise model. |
|
Return a numpy random number generator, using the member data seed. |
|
Return the number of elements in the sequence that would be generated for the given code_data. |
|
Given some representation of a code, return num_splits number of generators of errors for that code and the respective sizes for those generators. |