deltakit.circuit.noise_channels.CorrelatedError#

class deltakit.circuit.noise_channels.CorrelatedError(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. Sets the “correlated error occurred flag” to true if the error occurred. Otherwise sets the flag to false.

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#

CorrelatedError.approx_equals

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

CorrelatedError.generator_from_prob

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

CorrelatedError.stim_targets

Return all the stim targets which specifies this noise channel.

CorrelatedError.transform_qubits

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