deltakit.circuit.noise_channels.Depolarise1#

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

Bases: OneQubitOneProbabilityNoiseChannel[T]

The one-qubit depolarising channel. Applies a randomly chosen Pauli with a given probability.

Parameters:
  • qubit (Qubit[T] | T) – The qubit to apply one-qubit depolarising noise to.

  • probability (float) – A single float specifying the depolarisation strength.

Notes

Pauli Mixture:
1-p: I
p/3: X
p/3: Y
p/3: Z

Methods#

Depolarise1.approx_equals

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

Depolarise1.generator_from_prob

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

Depolarise1.stim_targets

Return all the stim targets which specifies this noise channel.

Depolarise1.transform_qubits

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