iqm.error_reduction_tools.readout_characterization.data_processing.StateCovarianceData

iqm.error_reduction_tools.readout_characterization.data_processing.StateCovarianceData#

class iqm.error_reduction_tools.readout_characterization.data_processing.StateCovarianceData#

Bases: TypedDict

State-dependent covariance output container.

Attributes

covariance_matrices

NxN covariance matrices keyed by error ID pairs (error_i, error_j).

error_labels

List of ((error_i, error_j), description) pairs providing human-readable labels for each error pair.

measured_qubits

Ordered list of qubit labels corresponding to the matrix row/column indices.

Methods

covariance_matrices: dict[tuple[int, int], ndarray]#

NxN covariance matrices keyed by error ID pairs (error_i, error_j). Entry [m, n] is the covariance between error type error_i on qubit m and error type error_j on qubit n for a key (error_i, error_j), conditioned on the respective preparation states of both qubits.

error_labels: list[tuple[tuple[int, int], str]]#

List of ((error_i, error_j), description) pairs providing human-readable labels for each error pair.

measured_qubits: list[str]#

Ordered list of qubit labels corresponding to the matrix row/column indices.