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

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

버전 0.9.0부터 폐지: Adding nonlocal noise to a noise model is deprecated and will be removed no earlier than 3 months from the qiskit-aer 0.9.0 release date. To add non-local noise to a circuit you should write a custom qiskit transpiler pass.

매개변수
• error (QuantumError) – the quantum error object.

• (str or list[str] or (instructions) – 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).

예외

NoiseError – if the input parameters are invalid.