# GatesetTomographyFitter¶

class GatesetTomographyFitter(result, circuits, gateset_basis='default')[소스]

기반 클래스: object

Initialize gateset tomography fitter with experimental data.

매개변수
• result (Result) – a Qiskit Result object obtained from executing tomography circuits.

• circuits (List) – a list of circuits or circuit names to extract count information from the result object.

• gateset_basis (Union[GateSetBasis, str]) – (default: ‘default’) Representation of

• gates and SPAM circuits of the gateset (the) –

The fitter attempts to output a GST result from the collected experimental data. The output will be a dictionary of the computed operators for the gates, as well as the measurment operator and initial state of the system.

The input for the fitter consists of the experimental data collected by the backend, the circuits on which it operated and the gateset basis used when collecting the data.

Example:

from qiskit.circuits.library.standard import *
from qiskit.ignis.verification.basis import default_gateset_basis
from qiskit.ignis.verification import gateset_tomography_circuits
from qiskit.ignis.verification import GateSetTomographyFitter

gate = HGate()
basis = default_gateset_basis()

 fit Reconstruct a gate set from measurement data using optimization. linear_inversion Reconstruct a gate set from measurement data using linear inversion.