Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.providers.aer.noise.depolarizing_error

depolarizing_error(param, num_qubits, standard_gates=None)

GitHub

Return a depolarizing quantum error channel.

The depolarizing channel is defined as:

E(ρ)=(1λ)ρ+λTr[ρ]I2nE(ρ) = (1 - λ) ρ + λ \text{Tr}[ρ] \frac{I}{2^n}

with 0λ4n/(4n1)0 \le λ \le 4^n / (4^n - 1)

where λλ is the depolarizing error param and :math`n` is the number of qubits.

  • If λ=0λ = 0 this is the identity channel E(ρ)=ρE(ρ) = ρ
  • If λ=1λ = 1 this is a completely depolarizing channel E(ρ)=I/2nE(ρ) = I / 2^n
  • If λ=4n/(4n1)λ = 4^n / (4^n - 1) this is a uniform Pauli error channel: E(ρ)=jPjρPj/(4n1)E(ρ) = \sum_j P_j ρ P_j / (4^n - 1) for all Pj!=IP_j != I.

Parameters

  • param (double) – depolarizing error parameter.
  • num_qubits (int) – the number of qubits for the error channel.
  • standard_gates (bool) – DEPRECATED, if True return the operators as Pauli gates. If false return as unitary gates. (Default: None)

Returns

The quantum error object.

Return type

QuantumError

Raises

NoiseError – If noise parameters are invalid.

Was this page helpful?
Report a bug or request content on GitHub.