About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
qiskit_aer.utils.transform_noise_model
transform_noise_model(noise_model, func)
Return a new noise model by applyign a function to all quantum errors.
This returns a new noise model containing the resulting errors from applying the supplied function to all QuantumErrors in the noise model. This function should have singature func(error: QuantumError) -> QuantumError where the returned quantum error is defined on the same number of qubits as the original error.
Parameters
- noise_model (
NoiseModel
) – the noise model to be transformed. - func (
Callable
) – function for transforming QuantumErrors.
Return type
Returns
The transpiled noise model.
Raises
NoiseError – if the transformation failed.
Was this page helpful?
Report a bug or request content on GitHub.