Note
This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.
CrossResonanceHamiltonianAnalysis¶
- class CrossResonanceHamiltonianAnalysis[source]¶
A class to analyze cross resonance Hamiltonian tomography experiment.
Fit model
This is the curve fitting analysis. The following equation(s) are used to represent curve(s).
This analysis performs
BlochTrajectoryAnalysison the target qubit with the control qubit states in \(\in \{ |0\rangle, |1\rangle \}\).Based on the fit result, cross resonance Hamiltonian coefficients can be determined by
\[\begin{split}ZX &= \frac{p_{x, |0\rangle} - p_{x, |1\rangle}}{2}, \\ ZY &= \frac{p_{y, |0\rangle} - p_{y, |1\rangle}}{2}, \\ ZZ &= \frac{p_{z, |0\rangle} - p_{z, |1\rangle}}{2}, \\ IX &= \frac{p_{x, |0\rangle} + p_{x, |1\rangle}}{2}, \\ IY &= \frac{p_{y, |0\rangle} + p_{y, |1\rangle}}{2}, \\ IZ &= \frac{p_{z, |0\rangle} + p_{z, |1\rangle}}{2},\end{split}\]where \(p_{\beta, |j\rangle}\) is a fit parameter of
BlochTrajectoryAnalysisfor the projection axis \(\beta\) with the control qubit state \(|j\rangle\).Analysis options
These are the keyword arguments of
run()method.- Options
Defined in the class
CompositeCurveAnalysis:plotter (BasePlotter)
Default value: Instance ofCurvePlotterA plotter instance to visualize the analysis result.plot (bool)
Default value:TrueSetTrueto create figure for fit result. This isTrueby default.return_fit_parameters (bool)
Default value:TrueSetTrueto return all fit model parameters with details of the fit outcome. Default toTrue.return_data_points (bool)
Default value:FalseSetTrueto include in the analysis result the formatted data points given to the fitter. Default toFalse.extra (Dict[str, Any])
Default value: {}A dictionary that is appended to all database entries as extra information.
Defined in the class
BaseAnalysis:figure_names (str or List[str])
Default value:NoneIdentifier of figures that appear in the experiment data to sort figures by name.
See also
Initialization
Initialize the analysis object.
Attributes
A short-cut for curve drawer instance, if set.
Return fit models.
Return name of this analysis.
Return the analysis options for
run()method.Return parameters of this curve analysis.
A short-cut to the plotter instance.
Methods
Return curve analysis instance.
Return the config dataclass for this analysis
Return a copy of the analysis
Initialize an analysis class from analysis config
CrossResonanceHamiltonianAnalysis.run(...[, ...])Run analysis and update ExperimentData with analysis result.
Set the analysis options for
run()method.