depolarizing_error#
- depolarizing_error(param, num_qubits)[source]#
Return a depolarizing quantum error channel.
The depolarizing channel is defined as:
with
where
is the depolarizing error param and is the number of qubits.If
this is the identity channelIf
this is a completely depolarizing channelIf
this is a uniform Pauli error channel: for all .
- Parameters:
param (double) – depolarizing error parameter.
num_qubits (int) – the number of qubits for the error channel.
- Returns:
The quantum error object.
- Return type:
- Raises:
NoiseError – If noise parameters are invalid.