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#

ElseCorrelatedError.approx_equals

Determine whether two noise channels are equal within a given tolerance.

ElseCorrelatedError.generator_from_prob

Return a classmethod that can be used to create a noise channel with a predetermined probability

ElseCorrelatedError.stim_targets

Return all the stim targets which specifies this noise channel.

ElseCorrelatedError.transform_qubits

Transform this noise channel's qubits according to the id mapping.