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#
Add noise channels to this noise layer. |
|
Determine whether two noise layers are approximately equal within a tolerance. |
|
Updates stim_circuit with the stim circuit which contains the noise channels specified in this NoiseLayer. |
|
Transform all noise channels in this layer according to the id mapping. |