deltakit.circuit.noise_channels.Relax#
- class deltakit.circuit.noise_channels.Relax(qubit: Qubit[T] | T, probability: float, *, tag: str | None = None)#
Bases:
OneQubitOneProbabilityNoiseChannel[T]The single qubit relaxation channel.
Applies a single-qubit relaxation event with the given probability. Note: this is the probability that the target, when leaked, is returned to the computational subspace.
If a qubit is relaxed, it is returned to the computational subspace and no longer marked as leaked. Once relaxed a qubit will, therefore, no longer depolarise qubits that it interacts with.
- Parameters:
qubit (Qubit[T] | T) – The qubit to apply relaxation to.
probability (float) – A single float specifying the relaxation probability.
Methods#
Determine whether two noise channels are equal within a given tolerance. |
|
Return a classmethod that can be used to create a noise channel with a predetermined probability |
|
Return all the stim targets which specifies this noise channel. |
|
Transform this noise channel's qubits according to the id mapping. |