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.
Deprecated since version 0.9.0: This function is deprecated and will be removed in a future release. Use deltakit_explorer.plotting.correlation_matrix instead.
- 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