Sampler Callbacks
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)
CallbackList
CallbackList (sampler, callbacks=[])
Manages execution of all specified callbacks
Callback
Callback ()
Callback super class: All callbacks must inherit this class.
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
StopAtNoHits
StopAtNoHits ()
Callback for DirectSampler only
PlotStats
PlotStats ()
Plot sampler statistics at end of sampling process
RelStdTarget
RelStdTarget (target=0.1, include_delta=True)
Callback to stop sampling when the relative standard deviation target target
is reached
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
VerboseCircuitExec
VerboseCircuitExec ()
Callback to output detailed information about circuit selection, specific fault that occured, measurement outcome and next circuit
PlotERVPerShot
PlotERVPerShot (log_dir=None)
Callback to plot statistics about ERV values and selected subsets due to ERV
PrintERVPerShot
PrintERVPerShot ()
Callback to print ERV statistics per shot
PathProducts
PathProducts (log_dir=None)
Callback to plot distribution of sampled paths
SubsetRates
SubsetRates (log_dir=None)
Callback to plot progression of each fail path as a function of shots