Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

approximate_quantum_error

approximate_quantum_error(error, *, operator_string=None, operator_dict=None, operator_list=None)

GitHub

Return an approximate QuantumError bases on the Hilbert-Schmidt metric.

Currently this is only implemented for 1-qubit QuantumErrors.

Parameters

  • error (QuantumError) – the error 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 quantum error.

Return type

QuantumError

Raises

  • NoiseError – if number of qubits is not supported or approximation failed.
  • RuntimeError – If there’s no information about the noise type.

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().

Was this page helpful?
Report a bug or request content on GitHub.