Skip to content

validators

tergite_autocalibration.lib.utils.validators

Functions:

Name Description
get_batched_dimensions

if the samplespace is a list of NDarrays,

get_number_of_batches

if the samplespace is a list of NDarrays,

reduce_batch

if the samplespace is a list of NDarrays,

get_batched_dimensions

get_batched_dimensions(samplespace: Dict[str, Dict[str, list[NDArray]]]) -> list[str]

if the samplespace is a list of NDarrays, return the name of the settable, e.g. 'frequencies'

get_number_of_batches

get_number_of_batches(samplespace: Dict[str, Union[Dict[str, NDArray], Dict[str, list[NDArray]]]])

if the samplespace is a list of NDarrays, return the number of individual arrays per qubit

reduce_batch

reduce_batch(samplespace, batch: int)

if the samplespace is a list of NDarrays, keep only the array of index=batch. the reduced samplespace has the same structure as a regular samplespace.