qiskit-documentation/docs/api/qiskit/0.27/qiskit.ignis.verification.P...

73 lines
3.3 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Plotter
description: API reference for qiskit.ignis.verification.Plotter
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.ignis.verification.Plotter
---
# qiskit.ignis.verification.Plotter
<Class id="qiskit.ignis.verification.Plotter" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-ignis/tree/stable/0.6/qiskit/ignis/verification/entanglement/analysis.py" signature="Plotter(label)" modifiers="class">
Various plots of the ground state in MQC and PO experiments
### \_\_init\_\_
<Function id="qiskit.ignis.verification.Plotter.__init__" signature="__init__(label)">
Initialize self. See help(type(self)) for accurate signature.
</Function>
## Methods
| | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [`__init__`](#qiskit.ignis.verification.Plotter.__init__ "qiskit.ignis.verification.Plotter.__init__")(label) | Initialize self. |
| [`get_fourier_info`](#qiskit.ignis.verification.Plotter.get_fourier_info "qiskit.ignis.verification.Plotter.get_fourier_info")(qn, x, y, y\_m, p\_dict) | Get fourier trans. |
| [`sin_plotter`](#qiskit.ignis.verification.Plotter.sin_plotter "qiskit.ignis.verification.Plotter.sin_plotter")(x, y\[, y\_m]) | Make sin plot of counts in both mqc and po exps. |
| [`title_maker`](#qiskit.ignis.verification.Plotter.title_maker "qiskit.ignis.verification.Plotter.title_maker")() | Make title depending on type of exp. |
### get\_fourier\_info
<Function id="qiskit.ignis.verification.Plotter.get_fourier_info" signature="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
</Function>
### sin\_plotter
<Function id="qiskit.ignis.verification.Plotter.sin_plotter" signature="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
</Function>
### title\_maker
<Function id="qiskit.ignis.verification.Plotter.title_maker" signature="title_maker()">
Make title depending on type of exp.
**Return type**
`Tuple`\[`str`, `str`]
**Returns**
The title strings
</Function>
</Class>