Qiskit-Extensions / qiskit-experiments

Qiskit Experiments
https://qiskit-extensions.github.io/qiskit-experiments/
Apache License 2.0
151 stars 122 forks source link

Cleanup composite analysis (backport #1397) #1447

Open mergify[bot] opened 2 months ago

mergify[bot] commented 2 months ago

Summary

Thanks to #1342 we can cleanup internals of CompositeCurveAnalysis. Not API break and no feature upgrade with this PR.

Details and comments

Previously the curve data and fit summary data are internally created in CurveAnalysis but immediately discarded. The implementation in CurveAnalysis._run_analysis is manually copied to CompositeCurveAnalysis._run_analysis to access these artifact data to create composite artifact data from them. This makes code fragile since developers needed to manually update both base classes. With this PR, implementation of component analysis is encapsulated.


This is an automatic backport of pull request #1397 done by Mergify.