tqec.noise_models.noise_model.NoiseRule#
- class NoiseRule(*, after: dict[str, float], flip_result: float = 0)[source]#
Describes how to add noise to an operation.
- __init__(*, after: dict[str, float], flip_result: float = 0)[source]#
- Parameters:
after – A dictionary mapping noise rule names to their probability argument. For example, {“DEPOLARIZE2”: 0.01, “X_ERROR”: 0.02} will add two qubit depolarization with parameter 0.01 and also add 2% bit flip noise. These noise channels occur after all other operations in the moment and are applied to the same targets as the relevant operation.
flip_result – The probability that a measurement result should be reported incorrectly. Only valid when applied to operations that produce measurement results.
Methods
__init__
(*, after[, flip_result])append_noisy_version_of
(*, split_op, ...)