tqec.noise_models.after_clifford_depolarization.AfterCliffordDepolarizingNoise
- class AfterCliffordDepolarizingNoise(p: float)[source]
- __init__(p: float)[source]
Applies a depolarising noise after each Clifford operation.
The depolarising noise applied is a cirq.DepolarizingChannel with the same number of qubits as the Clifford operation. For a number of qubits n > 1, this is different from applying n times a 1-qubit depolarizing noise to each of the involved qubits.
- Parameters:
p – strength (probability of error) of the applied noise.
Methods
__init__
(p)Applies a depolarising noise after each Clifford operation.
from_noise_model_like
(noise)Transforms an object into a noise model if unambiguously possible.
is_in_effect
()is_virtual_moment
(moment)Returns true iff the given moment is non-empty and all of its operations are virtual.
noisy_moment
(moment, system_qubits)Adds noise to the operations from a moment.
noisy_moments
(moments, system_qubits)Adds possibly stateful noise to a series of moments.
noisy_operation
(operation)Adds noise to an individual operation.
recurse_in_operation_if_circuit_operation
(...)Helper method to handle cirq.CircuitOperation nearly transparently.
Attributes
prob