pygsti.extras.drift.stabilityanalyzer.condense_tests#
- condense_tests(shape, tests, weightings=None)#
Condenses a set of tests, by removing any tests that are equivalent given the meta-parameters of the data (e.g., the number of circuits).
- Parameters:
shape (tuple) – The “shape” of the time-sereis data that is being tested. A 3-tuple, whereby the shape[0] is the number of DataSets in the MultiDataSet being tested, shape[1] is the number of circuits, and shape[2] is the number of outcomes per circuit.
tests (list) – The set of tests to condense, based on shape.
weightings (dict, optional) – A dictonary containing significance weightings for the tests, whereby the keys are the tests (the elemenets of the list tests) and the values are floats that are Bonferonni weightings for splitting significance.
- Returns:
tuple – A tuple containing the auto-generated tests to run.
if weightings is not None –
- dict
A dictionary of weightings that has condensed the weightings in weightings, so that the weighting on a test that is being dropped (or relabelled) is redistributed to the equivalant test that we are implementing.