Estimating the T2* dephasing time
We will estimate the T2* dephasing time based on the experiment results from t2star_circuits
executed on a noisy device. We will use the probability formula of measuring 0
from the following equation, where A, T2*, f, , and B are unknown parameters:
The T2StarFitter
parameters are the same, with the exception of the following:
fit_p0
: The initial values to the fit parameters – in order, A, T2*, f, , B.fit_bounds
: The lower and upper bounds, respectively. Parameters in order:A
, T2*, f, , B
The following code will set the initial parameter values so that we can generate our T2StarFitter
and bounds:
# Set the initial values of the T2StarFitter parameters param_T2Star = t2Star*1.1 param_A = 0.5 param_B = 0.5 # Generate the T2StarFitter with the given parameters and # bounds fit = T2StarFitter(backend_result, delay_times, qubits, ...