deltakit.circuit.NoiseLayer#

class deltakit.circuit.NoiseLayer(noise_channels: PauliXError[T] | PauliYError[T] | PauliZError[T] | PauliChannel1[T] | PauliChannel2[T] | Depolarise1[T] | Depolarise2[T] | CorrelatedError[T] | ElseCorrelatedError[T] | Leakage | Relax | Iterable[PauliXError[T] | PauliYError[T] | PauliZError[T] | PauliChannel1[T] | PauliChannel2[T] | Depolarise1[T] | Depolarise2[T] | CorrelatedError[T] | ElseCorrelatedError[T] | Leakage | Relax] | None = None)#

Bases: Generic[T]

Class which represents noise in a circuit.

Methods#

NoiseLayer.add_noise_channels

Add noise channels to this noise layer.

NoiseLayer.approx_equals

Determine whether two noise layers are approximately equal within a tolerance.

NoiseLayer.permute_stim_circuit

Updates stim_circuit with the stim circuit which contains the noise channels specified in this NoiseLayer.

NoiseLayer.transform_qubits

Transform all noise channels in this layer according to the id mapping.