NoiseModel.add_all_qubit_quantum_error¶
- NoiseModel.add_all_qubit_quantum_error(error, instructions, warnings=True)[source]¶
Add a quantum error to the noise model that applies to all qubits.
- Parameters
error (QuantumError) – the quantum error object.
or (instructions (str or list[str]) – Instruction or list[Instruction]): the instructions error applies to.
warnings (bool) – Display warning if appending to an instruction that already has an error (Default: True).
- Raises
NoiseError – if the input parameters are invalid.
- Additional Information:
If the error object is ideal it will not be added to the model.