qiskit.providers.aer.utils.remap_noise_model
remap_noise_model(noise_model, remapping, discard_qubits=False, warnings=True)
[Deprecated] Remap qubits in a noise model.
This remaps the specified gate qubits for local quantum errors, the gate and noise qubits for non-local quantum errors, and the gate qubits for local ReadoutErrors. All-qubit quantum and readout errors are unaffected.
Parameters
- noise_model (NoiseModel) – a noise model to remap qubits.
- remapping (list) – list or remappings of old qubit to new qubit. See Additional Information.
- discard_qubits (bool) – if True discard qubits not in remapping keys, if False an identity mapping wil be assumed for unnamed qubits (Default: False).
- warnings (bool) – display warnings if qubits being remapped are not in the input noise model (Default: True).
Returns
a new noise model with the same errors but remapped gate and noise qubits for local and non-local errors.
Return type
Raises
NoiseError – if remapping has duplicate qubits in the remapped qubits.
Additional Information:
- The remapping map be specified as either a list of pairs:
[(old, new), ...]
, or a list of old qubits where the new qubit is inferred from the position:[old0, old1, ...]
is treated as[(old0, 0), (old1, 1), ...]
. - If
discard_qubits
isFalse
, any qubits in the noise model not specified in the list of old qubits will be added to the remapping as a trivial mapping(qubit, qubit)
.
Was this page helpful?
Report a bug or request content on GitHub.