Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

qiskit.ignis.verification.Plotter

class Plotter(label)

GitHub(opens in a new tab)

Various plots of the ground state in MQC and PO experiments

__init__

__init__(label)

Initialize self. See help(type(self)) for accurate signature.


Methods

__init__(label)Initialize self.
get_fourier_info(qn, x, y, y_m, p_dict)Get fourier trans.
sin_plotter(x, y[, y_m])Make sin plot of counts in both mqc and po exps.
title_maker()Make title depending on type of exp.

get_fourier_info

get_fourier_info(qn, x, y, y_m, p_dict)

Get fourier trans. data/plot of both mqc and po exps. :type qn: int :param qn: Number of qubits :type x: array :param x: Phase series :type y: array :param y: Counts series :type y_m: array :param y_m: Mitigated counts series :type p_dict: Dict :param p_dict: probabilities dictionary

Return type

Dict

Returns

The fourier transform data

Raises

  • ImportError – If matplotlib is not present
  • Exception – If y_m or p_dict are not provided

sin_plotter

sin_plotter(x, y, y_m=None)

Make sin plot of counts in both mqc and po exps. :type x: array :param x: Phase series :type y: array :param y: Counts series :type y_m: Optional[array] :param y_m: Mitigated counts series

Raises

ImportError – If matplotlib is not present

title_maker

title_maker()

Make title depending on type of exp.

Return type

Tuple[str, str]

Returns

The title strings

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