depolarizing_error#

depolarizing_error(param, num_qubits)[source]#

Return a depolarizing quantum error channel.

The depolarizing channel is defined as:

E(ρ)=(1λ)ρ+λTr[ρ]I2n

with 0λ4n/(4n1)

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

  • If λ=0 this is the identity channel E(ρ)=ρ

  • If λ=1 this is a completely depolarizing channel E(ρ)=I/2n

  • If λ=4n/(4n1) this is a uniform Pauli error channel: E(ρ)=jPjρPj/(4n1) for all Pj!=I.

Parameters:
  • param (double) – depolarizing error parameter.

  • num_qubits (int) – the number of qubits for the error channel.

Returns:

The quantum error object.

Return type:

QuantumError

Raises:

NoiseError – If noise parameters are invalid.