Implements a filter based on a discriminator that takes level 1 data to level 2 data.
my_filter = DiscriminationFilter(my_discriminator) new_result = filter.apply(level_1_data)
discriminator (BaseDiscriminationFitter) – a discriminator that maps level 1 data to level 2 data. - Level 1 data may correspond to, e. g., IQ data. - Level 2 data is the state counts.
int]) – the base of the expected states. If it is not given the base is inferred from the expected_state instance of discriminator.
Create a new result from the raw_data by converting level 1 data to level 2 data.
Converts discriminated results into raw counts.
Returns the base inferred from expected_states.