TensoredFilter.apply¶
- TensoredFilter.apply(raw_data, method='least_squares')[source]¶
Apply the calibration matrices to results.
- Parameters
raw_data (dict or Result) –
The data to be corrected. Can be in one of two forms:
A counts dictionary from results.get_counts
A Qiskit Result
method (str) –
fitting method. The following methods are supported:
’pseudo_inverse’: direct inversion of the cal matrices.
’least_squares’: constrained to have physical probabilities.
If None, ‘least_squares’ is used.
- Returns
The corrected data in the same form as raw_data
- Return type
dict or Result
- Raises
QiskitError – if raw_data is not in a one of the defined forms.