deltakit.circuit.noise_channels.ElseCorrelatedError#
- class deltakit.circuit.noise_channels.ElseCorrelatedError(pauli_product: PauliX[T] | PauliY[T] | PauliZ[T] | Iterable[PauliX[T] | PauliY[T] | PauliZ[T]] | PauliProduct[T], probability: float, tag: str | None = None)#
Bases:
PauliProductNoise[T]Probabilistically applies a Pauli product error with a given probability, unless the “correlated error occurred flag” is set. If the error occurs, sets the “correlated error occurred flag” to true. Otherwise leaves the flag alone.
- Parameters:
pauli_product (PauliGateT | Iterable[PauliGateT] | PauliProduct[T]) – The Pauli gates specifying the Paulis to apply when the error occurs.
probability (float) – A single float specifying the probability of applying the Paulis making up the error.
Methods#
Determine whether two noise channels are equal within a given tolerance. |
|
Return a classmethod that can be used to create a noise channel with a predetermined probability |
|
Return all the stim targets which specifies this noise channel. |
|
Transform this noise channel's qubits according to the id mapping. |