approximate_noise_model

approximate_noise_model(model, *, operator_string=None, operator_dict=None, operator_list=None)[source]

Return an approximate noise model.

Parameters
  • model (NoiseModel) – the noise model to be approximated.

  • operator_string (string or None) – a name for a pre-made set of building blocks for the output channel (Default: None).

  • operator_dict (dict or None) – a dictionary whose values are the building blocks for the output channel (Default: None).

  • operator_list (dict or None) – list of building blocks for the output channel (Default: None).

Returns

the approximate noise model.

Return type

NoiseModel

Raises
  • NoiseError – if number of qubits is not supported or approximation

  • failed.

Additional Information:

The operator input precedence is: list < dict < str. If a string is given, dict is overwritten; if a dict is given, list is overwritten. Oossible values for string are 'pauli', 'reset', 'clifford'. For further information see NoiseTransformer.named_operators().