qilisdk.noise.depolarizing
Classes
Single-qubit depolarizing noise channel. |
Module Contents
- class Depolarizing(*, probability: float)[source]
Bases:
qilisdk.noise.pauli_channel.PauliChannelSingle-qubit depolarizing noise channel.
This channel mixes the state with the maximally mixed state by configuring pX = pY = pZ = p / 3, which implies pI = 1 - p.
- Parameters:
probability (
float) – Depolarizing probability in the range [0, 1].- Raises:
ValueError – If probability is outside [0, 1].
- property probability: float[source]
Return the depolarizing probability.
- Returns:
The depolarizing probability.
- Return type:
float