quri_parts.algo.mitigation.post_selection package#
- create_general_post_selection_sampler(sampler, filter_fn)#
Returns
Sampler
that performs post-selection after sampling.Note that the effective shots might decrease by discarding the measurement results which do not pass
filter_fn
.- Parameters:
sampler (core.sampling.Sampler) –
filter_fn (algo.mitigation.post_selection.post_selection.PostSelectionFilterFunction) –
- Return type:
core.sampling.Sampler