deltakit.decode.noise_sources.OptionedStim#

class deltakit.decode.noise_sources.OptionedStim(after_clifford_depolarisation: float = 0.0, before_round_data_depolarisation: float = 0.0, before_measure_flip_probability: float = 0.0, after_reset_flip_probability: float = 0.0)#

Bases: StimNoise

A class with the ability to manipulate lestim circuits with after clifford gate depolarisation, before measure flip probability and after reset flip probability. For more information on these noise profiles see: https://github.com/quantumlib/Stim/blob/main/doc/ python_api_reference_vDev.md#stim.Circuit.generated

Parameters:
  • after_clifford_depolarisation (float, optional) – Rate at which to depolarize after Clifford gates, by default 0.0.

  • before_round_data_depolarisation (float, optional) – Rate at which to depolarize before a QEC round, by default 0.0.

  • before_measure_flip_probability (float, optional) – Rate at which to flip measurement results, by default 0.0.

  • after_reset_flip_probability (float, optional) – Rate at which to flip reset qubits, by default 0.0.

Methods#

OptionedStim.as_exhaustive_sequential_model

Return the equivalent exhaustive model for this noise model.

OptionedStim.build_batch_error_generator

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

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

OptionedStim.error_generator

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

OptionedStim.field_values

Return the values of data that characterises this noise model.

OptionedStim.get_rng

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

OptionedStim.importance_sampling_decomposition

Expresses the independent error distribution as a statistical mixture of other error distributions.

OptionedStim.permute_stim_circuit

Apply noise to a lestim circuit

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