deltakit.decode.noise_sources.UniformMatchingNoise#
- class deltakit.decode.noise_sources.UniformMatchingNoise(basic_error_prob: float, edge_filter: Callable[[HyperMultiGraph], Sequence[EdgeT]] | None = None)#
Bases:
IndependentMatchingNoiseA noise model that defines noise over a single decoding graph, where all decoding edges are assigned a uniform weight and sampled randomly with given probability.
Methods#
Return the equivalent exhaustive model for this noise model. |
|
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. |
|
Filter that does not change the input. |
|
Given some representation of a code, return a generator 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. |
|
Expresses the independent error distribution as a statistical mixture of other error distributions. |
|
Given some representation of a code, return num_splits number of generators of errors for that code and the respective sizes for those generators. |