qiskit.providers.aer.noise.NoiseModel.add_nonlocal_quantum_error¶
- 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.
or (instructions (str or list[str]) – Instruction or list[Instruction]): the instructions error applies to.
qubits (Sequence[int]) – qubits instruction error applies to.
noise_qubits (Sequence[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.
- Additional Information:
If the error object is ideal it will not be added to the model.