DiscriminationFilter¶
-
class
DiscriminationFilter
(discriminator, base=None)[source]¶ Bases:
object
Implements a filter based on a discriminator that takes level 1 data to level 2 data.
- Usage:
my_filter = DiscriminationFilter(my_discriminator) new_result = filter.apply(level_1_data)
- Parameters
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.
base (
Optional
[int
]) – the base of the expected states. If it is not given the base is inferred from the expected_state instance of discriminator.
Methods