marginal_prob#
- diffqc.marginal_prob(probs: Array, integrate_wires: Union[int, Tuple[int]]) Array #
Calculate marginal probabilities
- Parameters
probs (1d jnp.ndarray) – Probabilities of n-qubit state
integrate_wires (int or tuple of ints) – Wires which will be marginalized out
- Returns
Marginalized probabilities
- Return type
jnp.ndarray