deltakit.decode.utils.plot_correlation_matrix#
- deltakit.decode.utils.plot_correlation_matrix(matrix: List[List[float]], major_minor_mapping: Dict[Tuple[float, ...], List[int]], labels: Sequence[str] = ())#
Plot a given correlation matrix as a heatmap.
- Parameters:
matrix (List[List[float]]) – A correlation matrix generated from Pij data.
major_minor_mapping (Dict[Tuple[int, ...], List[int]]) – The accompanying coordinate mapping for a correlation matrix.
labels (Sequence[str]) – Optional list of labels to assign to the qubits in-order. If unspecified, will use the qubit’s coordinates instead. By default, ().
- Returns:
The plt object containing the drawn heatmap.
- Return type:
matplotlib.plt