deltakit.circuit.noise_channels.PauliZError#

class deltakit.circuit.noise_channels.PauliZError(qubit: Qubit[T] | T, probability: float, *, tag: str | None = None)#

Bases: OneQubitOneProbabilityNoiseChannel[T]

Applies a Pauli Z with a given probability.

Parameters:
  • qubit (Qubit[T] | T) – The qubit to apply phase flip noise to.

  • probability (float) – A single float specifying the probability of applying a Z operation.

Notes

Pauli Mixture:
1-p: I
p : Z

Methods#

PauliZError.approx_equals

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

PauliZError.generator_from_prob

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

PauliZError.stim_targets

Return all the stim targets which specifies this noise channel.

PauliZError.transform_qubits

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