Plotter
class Plotter(label)
Bases: object
Various plots of the ground state in MQC and PO experiments
Methods
get_fourier_info
Plotter.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
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
Plotter.title_maker()
Make title depending on type of exp.
Return type
Tuple
[str
, str
]
Returns
The title strings