iqm.benchmarks.utils.marginal_distribution#
- iqm.benchmarks.utils.marginal_distribution(prob_dist_or_counts: dict[str, float | int], indices: Iterable[int]) dict[str, float]#
Compute the marginal distribution over specified bits (indices).
- Parameters:
- Returns:
A dictionary representing the marginal distribution over the specified bits.
- Return type: