qiskit-experiments icon indicating copy to clipboard operation
qiskit-experiments copied to clipboard

P1 analysis for decay analysis

Open nkanazawa1989 opened this issue 3 years ago • 6 comments

Summary

This PR upgrades Decay common analysis class to support single point scan.

Details and comments

If one sets the analysis option raw_data_mode=True the analysis class will skip the curve fit and store each single data point as individual analysis result entry under the name "MyExperiment_single_point".

Note that current implementation is really inefficient, because of tight coupling of data processing to analysis. This should be updated after the refactoring of analysis so that it can call data processing and _run_analysis as consecutive callbacks, i.e. separation of processing from analysis.

nkanazawa1989 avatar Nov 30 '21 04:11 nkanazawa1989

This is also relevant to #536

nkanazawa1989 avatar Nov 30 '21 04:11 nkanazawa1989

What's special in Decay compared to other types of analysis? We could have a new analysis class, inheriting directly from CurveAnalysis, that outputs the raw data.

yaelbh avatar Nov 30 '21 14:11 yaelbh

Because decay is monotonic to xval. I've never seen P1 type experiment with non-monotonic data. Probably @oliverdial knows other examples. (If any, it might be better to implement as mix-in)

nkanazawa1989 avatar Nov 30 '21 14:11 nkanazawa1989

Non-monotonic decay in T1 traces happens pretty often if you have a near-resonant TLS; P1 will oscillate for the first 10s of us. (Confession; I haven't looked at this PR, just providing the example as per request :) )

oliverdial avatar Nov 30 '21 15:11 oliverdial

Thanks! The background of this work is that some people wanted to monitor only single (or few) point of T1 curve. We have other examples such as Stark shift spectroscopy https://arxiv.org/abs/2105.15201, or survival probability of RB as a cost function of heavy optimization task https://arxiv.org/abs/2003.05952

However I've never seen this approach is used with non-decay type experiment. So I believe it should be sufficient to support this analysis (i.e. omit fit and return data point) only for decay analysis.

nkanazawa1989 avatar Dec 02 '21 21:12 nkanazawa1989

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 18 '23 13:07 CLAassistant