Sampler Callbacks

Callbacks can be passed to the sampler run method in order to hook into the various stages of the sampling process.
/home/dw/.local/lib/python3.10/site-packages/fastcore/docscrape.py:225: UserWarning: Unknown section Attributes
  else: warn(msg)

source

CallbackList

 CallbackList (sampler, callbacks=[])

Manages execution of all specified callbacks


source

Callback

 Callback ()

Callback super class: All callbacks must inherit this class.


source

CollectStatsPerShot

 CollectStatsPerShot (log_dir=None)

Store information of Sampler.stats() with each shot and plot each statistic as as function of shots after sampler ends


source

StopAtNoHits

 StopAtNoHits ()

Callback for DirectSampler only


source

PlotStats

 PlotStats ()

Plot sampler statistics at end of sampling process


source

RelStdTarget

 RelStdTarget (target=0.1, include_delta=True)

Callback to stop sampling when the relative standard deviation target target is reached


source

StatsPerShot

 StatsPerShot (log_dir=None)

Store information of Sampler.stats() with each shot and plot each statistic as as function of shots after sampler ends


source

VerboseCircuitExec

 VerboseCircuitExec ()

Callback to output detailed information about circuit selection, specific fault that occured, measurement outcome and next circuit


source

PlotERVPerShot

 PlotERVPerShot (log_dir=None)

Callback to plot statistics about ERV values and selected subsets due to ERV


source

PrintERVPerShot

 PrintERVPerShot ()

Callback to print ERV statistics per shot


source

PathProducts

 PathProducts (log_dir=None)

Callback to plot distribution of sampled paths


source

SubsetRates

 SubsetRates (log_dir=None)

Callback to plot progression of each fail path as a function of shots