NoiseModel.add_nonlocal_quantum_error

NoiseModel.add_nonlocal_quantum_error(error, instructions, qubits, noise_qubits, warnings=True)[source]

Add a non-local quantum error to the noise model.

Parameters
  • error (QuantumError) – the quantum error object.

  • or (instructions (str or list[str]) – Instruction or list[Instruction]): the instructions error applies to.

  • qubits (list[int]) – qubits instruction error applies to.

  • noise_qubits (list[int]) – Specify the exact qubits the error should be applied to if different to the instruction qubits.

  • 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.