deltakit.decode.noise_sources.ToyNoise#
- class deltakit.decode.noise_sources.ToyNoise(p_physical: float)#
Bases:
StimNoiseA noise model which adds:
Depolarise 1 channel after every one qubit gate, reset gate and measurement gates (with the exception of the MPP gate)
Inverse noise after every two qubit gate and MPP gate. Inverse noise consists of a depolarise 2 channel after every two qubit gate in a gate layer and a depolarise 1 channel after all qubits that are not acted on in the gate layer
Depolarise1 channels have an error probability of p_physical/10 while depolarise2 channels have an error probability of p_physical
- Parameters:
p_physical (float) – Single parameter used to define the rate of occurrence of several noise channels.
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. |
|
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. |
|
Apply noise to a lestim circuit |
|
Given some representation of a code, return num_splits number of generators of errors for that code and the respective sizes for those generators. |