deltakit.circuit.noise_channels.PauliChannel1#

class deltakit.circuit.noise_channels.PauliChannel1(qubit: Qubit[T] | T, p_x: float = 0.0, p_y: float = 0.0, p_z: float = 0.0, *, tag: str | None = None)#

Bases: OneQubitNoiseChannel[T], MultiProbabilityNoiseChannel[T]

A single qubit Pauli error channel with explicitly specified probabilities for each case.

Parameters:
  • qubit (Qubit[T] | T) – The qubit to apply the custom noise channel to.

  • p_x (float, optional) – Probability of applying an X operation, by default 0.0

  • p_y (float, optional) – Probability of applying a Y operation, by default 0.0

  • p_z (float, optional) – Probability of applying a Z operation, by default 0.0

Notes

Pauli Mixture:
1-px-py-pz: I
px: X
py: Y
pz: Z

Methods#

PauliChannel1.approx_equals

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

PauliChannel1.generator_from_prob

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

PauliChannel1.stim_targets

Return all the stim targets which specifies this noise channel.

PauliChannel1.transform_qubits

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