Conversation
|
|
||
| # Flux shift amplitude conversion (device-specific) | ||
| # NOTE: this assumes freq_vs_flux_01_quad_term exists and sign makes the sqrt valid | ||
| flux_shift = np.sqrt(-params.physical_detuning / freq_vs_flux_01_quad_term) |
There was a problem hiding this comment.
should we have the ability to set it to zero if the freq_vs_flux term doesn't exist? what is the the style of the usecase - very specfic to the original implementation or plug and play?
There was a problem hiding this comment.
very specific to the original implementation... then people can modify it. Do you think it's important to add it?
| # Bayesian update | ||
| assign(rk, Cast.to_fixed(state) - 0.5) | ||
| assign(t_sample, Cast.mul_fixed_by_int(1e-3, t * 4)) # tau in us | ||
|
|
There was a problem hiding this comment.
I would add a comment "Looping over the frequencies and updating the probabilit for each one based on the last measurement result"
There was a problem hiding this comment.
But in this loop we don't use the measurement result... what am I missing?
| This use case demonstrates Bayesian estimation of a Ramsey fringe frequency (effective detuning) using single-shot measurements on a flux-tunable transmon controlled by the OPX. | ||
|
|
||
| The protocol performs a Ramsey-style experiment and updates a discrete posterior distribution over a frequency grid after each measurement outcome. At the end of each repetition, the posterior mean provides an estimate of the effective detuning. | ||
|
|
There was a problem hiding this comment.
We should add a reference to Fabrizzio's paper, saying that this is based on that. And also, acknowledge the work by Fabrizzion
There was a problem hiding this comment.
Sure! Can you send me the paper you are referring to?
TomDvirQM
left a comment
There was a problem hiding this comment.
Looks great, tiny comment about documentation
No description provided.