tqec.noise_models.idle_qubits.DepolarizingNoiseOnIdlingQubit

class DepolarizingNoiseOnIdlingQubit(p: float)[source]
__init__(p: float)[source]

Applies a depolarizing noise on all idle qubits.

Idle qubits are computed on a per-Moment basis: any qubit that has no operation applied on in a Moment that contains a multi-qubit gate is considered idle during this Moment and a depolarizing noise is added to account for this idle time.

Parameters:

p – strength (probability of error) of the applied noise.

Methods

__init__(p)

Applies a depolarizing noise on all idle qubits.

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